Skip to content

Commit 7ab36c9

Browse files
committed
Do not use a mutable argument by default
1 parent ee3c5ee commit 7ab36c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

barcode/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
PROVIDED_BARCODES.sort()
5050

5151

52-
def get(name, code=None, writer=None, options={}):
52+
def get(name, code=None, writer=None, options=None):
53+
options = options or {}
5354
try:
5455
barcode = __BARCODE_MAP[name.lower()]
5556
except KeyError:

0 commit comments

Comments
 (0)