Skip to content

Commit b9f4cc8

Browse files
author
Hugo Osvaldo Barrera
committed
Make the default value for writer_options consistent
Fixes #10
1 parent 94f8be8 commit b9f4cc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

barcode/codex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def build(self):
7373
chars.append(code39.EDGE)
7474
return [code39.MIDDLE.join(chars)]
7575

76-
def render(self, writer_options, text=None):
76+
def render(self, writer_options=None, text=None):
7777
options = dict(module_width=MIN_SIZE, quiet_zone=MIN_QUIET_ZONE)
7878
options.update(writer_options or {})
7979
return Barcode.render(self, options, text)
@@ -252,7 +252,7 @@ def build(self):
252252
code += '11'
253253
return [code]
254254

255-
def render(self, writer_options, text=None):
255+
def render(self, writer_options=None, text=None):
256256
options = dict(module_width=MIN_SIZE, quiet_zone=MIN_QUIET_ZONE)
257257
options.update(writer_options or {})
258258
return Barcode.render(self, options, text)

0 commit comments

Comments
 (0)