src/reportlab/graphics/barcode/code128.py
changeset 3326 ce725978d11c
parent 2964 32352db0d71e
child 3721 0c93dd8ff567
--- a/src/reportlab/graphics/barcode/code128.py	Sat Feb 06 09:24:08 2010 +0000
+++ b/src/reportlab/graphics/barcode/code128.py	Mon Feb 08 18:17:33 2010 +0000
@@ -276,7 +276,7 @@
         s = self.validated
         l = ['START_B']
         for c in s:
-            if not setb.has_key(c):
+            if c not in setb:
                 l = l + ['TO_A', c, 'TO_B']
             else:
                 l.append(c)
@@ -288,7 +288,7 @@
         if l[1] in tos:
             l[:2] = ['START_' + l[1][-1]]
 
-#        print `l`
+#        print repr(l)
 
         # encode into numbers
         start, set, shset = setmap[l[0]]