src/reportlab/graphics/barcode/code128.py
branchpy33
changeset 3721 0c93dd8ff567
parent 3326 ce725978d11c
child 3723 99aa837b6703
--- a/src/reportlab/graphics/barcode/code128.py	Fri Feb 15 15:54:16 2013 +0000
+++ b/src/reportlab/graphics/barcode/code128.py	Tue Apr 30 14:20:22 2013 +0100
@@ -31,7 +31,7 @@
 #
 
 from reportlab.lib.units import inch
-from common import MultiWidthBarcode
+from .common import MultiWidthBarcode
 from string import digits
 
 _patterns = {
@@ -166,7 +166,7 @@
     'START_B' : (startb, setb, seta),
     'START_C' : (startc, setc, None),
 }
-tos = setmap.keys()
+tos = list(setmap.keys())
 
 class Code128(MultiWidthBarcode):
     """
@@ -223,7 +223,7 @@
         if type(value) is type(1):
             value = str(value)
             
-        for (k, v) in args.items():
+        for (k, v) in list(args.items()):
             setattr(self, k, v)
 
         if self.quiet: