src/reportlab/graphics/barcode/code93.py
branchpy33
changeset 3794 398ea04239b5
parent 3723 99aa837b6703
child 3975 4a3599863c11
--- a/src/reportlab/graphics/barcode/code93.py	Tue Nov 19 12:21:04 2013 +0000
+++ b/src/reportlab/graphics/barcode/code93.py	Tue Nov 19 13:50:34 2013 +0000
@@ -32,7 +32,6 @@
 
 from reportlab.lib.units import inch
 from .common import MultiWidthBarcode
-import string
 
 _patterns = {
   '0' : ('AcAaAb', 0),  '1' : ('AaAbAc', 1),  '2' : ('AaAcAb', 2),
@@ -108,7 +107,7 @@
 
     s.reverse()
 
-    return string.join(s, '')
+    return ''.join(s)
 
 class _Code93Base(MultiWidthBarcode):
     barWidth = inch * 0.0075
@@ -184,9 +183,7 @@
     def validate(self):
         vval = ""
         self.valid = 1
-        for c in self.value:
-            if c in string.lowercase:
-                c = string.upper(c)
+        for c in self.value.upper():
             if c not in _patterns:
                 self.valid = 0
                 continue