Commits

matt chisholm committed 6bc66fe

these will never be strs

Comments (0)

Files changed (1)

python/pottymouth.py

         for i in line:
             if isinstance(i, list):
                 length += self.calculate_line_length(i)
-            elif isinstance(i, basestring):
+            elif isinstance(i, unicode):
                 length += len(i)
             else:
                 raise Exception("Don't know what to do with line element of type %r" % (type(i)))