src/reportlab/graphics/barcode/code93.py
branchpy33
changeset 3721 0c93dd8ff567
parent 3326 ce725978d11c
child 3723 99aa837b6703
--- a/src/reportlab/graphics/barcode/code93.py	Fri Feb 15 15:54:16 2013 +0000
+++ b/src/reportlab/graphics/barcode/code93.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
 import string
 
 _patterns = {
@@ -55,7 +55,7 @@
 }
 
 _charsbyval = {}
-for k, v in _patterns.items():
+for k, v in list(_patterns.items()):
     _charsbyval[v[1]] = k
 
 _extended = {
@@ -85,7 +85,7 @@
 }
 
 def _encode93(str):
-    s = map(None, str)
+    s = list(str)
     s.reverse()
 
     # compute 'C' checksum
@@ -122,7 +122,7 @@
         if type(value) is type(1):
             value = str(value)
             
-        for (k, v) in args.iteritems():
+        for (k, v) in args.items():
             setattr(self, k, v)
 
         if self.quiet: