diff options
| author | Liam P. White <inkscapebrony@gmail.com> | 2014-06-19 02:32:07 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebrony@gmail.com> | 2014-06-19 02:32:07 +0000 |
| commit | f164dc6009f644939ba5fb09503fe0e35f1d4aae (patch) | |
| tree | 281c32b52168c049ce35d0f459413c28aa92a7b1 /share/extensions/Barcode/Code39Ext.py | |
| parent | Add clip group option from Ponyscape (diff) | |
| parent | Fix make check (diff) | |
| download | inkscape-f164dc6009f644939ba5fb09503fe0e35f1d4aae.tar.gz inkscape-f164dc6009f644939ba5fb09503fe0e35f1d4aae.zip | |
Update to experimental r13404
(bzr r13090.1.84)
Diffstat (limited to 'share/extensions/Barcode/Code39Ext.py')
| -rw-r--r-- | share/extensions/Barcode/Code39Ext.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/extensions/Barcode/Code39Ext.py b/share/extensions/Barcode/Code39Ext.py index 8f1e77826..b6df47de2 100644 --- a/share/extensions/Barcode/Code39Ext.py +++ b/share/extensions/Barcode/Code39Ext.py @@ -19,7 +19,7 @@ Python barcode renderer for Code39 Extended barcodes. Designed for Inkscape. """ -import Code39 +from Code39 import Code39 encode = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ') @@ -46,7 +46,7 @@ mapB = getMap(range(1, 26)) # $ mapC = getMap(range(33, 58)) # / mapD = getMap(range(97, 122)) # + -class Object(Code39.Object): +class Code39Ext(Code39): def encode(self, text): # We are only going to extend the Code39 barcodes result = '' @@ -61,5 +61,5 @@ class Object(Code39.Object): char = '+' + mapD[char] result = result + char - return Code39.Object.encode(self, result); + return Code39.encode(self, result); |
