Skip to content

Commit

Permalink
Make the default value for writer_options consistent
Browse files Browse the repository at this point in the history
Fixes #10
  • Loading branch information
Hugo Osvaldo Barrera committed Jun 14, 2018
1 parent 94f8be8 commit b9f4cc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions barcode/codex.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def build(self):
chars.append(code39.EDGE)
return [code39.MIDDLE.join(chars)]

def render(self, writer_options, text=None):
def render(self, writer_options=None, text=None):
options = dict(module_width=MIN_SIZE, quiet_zone=MIN_QUIET_ZONE)
options.update(writer_options or {})
return Barcode.render(self, options, text)
Expand Down Expand Up @@ -252,7 +252,7 @@ def build(self):
code += '11'
return [code]

def render(self, writer_options, text=None):
def render(self, writer_options=None, text=None):
options = dict(module_width=MIN_SIZE, quiet_zone=MIN_QUIET_ZONE)
options.update(writer_options or {})
return Barcode.render(self, options, text)
Expand Down

0 comments on commit b9f4cc8

Please sign in to comment.