From b9f4cc898e451fcfd7bcb51566d5076776827e0c Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Thu, 14 Jun 2018 13:45:51 -0300 Subject: [PATCH] Make the default value for writer_options consistent Fixes #10 --- barcode/codex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/barcode/codex.py b/barcode/codex.py index 20a3d24..30d290f 100755 --- a/barcode/codex.py +++ b/barcode/codex.py @@ -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) @@ -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)