Skip to content

Commit

Permalink
Do not use a mutable argument by default
Browse files Browse the repository at this point in the history
  • Loading branch information
xcodinas committed Apr 9, 2019
1 parent ee3c5ee commit 7ab36c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion barcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
PROVIDED_BARCODES.sort()


def get(name, code=None, writer=None, options={}):
def get(name, code=None, writer=None, options=None):
options = options or {}
try:
barcode = __BARCODE_MAP[name.lower()]
except KeyError:
Expand Down

0 comments on commit 7ab36c9

Please sign in to comment.