Commits

Tarek Ziadé committed 6403df4

cleanup

  • Participants
  • Parent commits a5af8c9
  • Tags 0.9

Comments (0)

Files changed (2)

File flake8/mccabe.py

     try:
         ast = compiler.parse(code)
     except AttributeError as e:
-        print >>sys.stderr, "Unable to parse %s: %s" % (filename, e)
+        print >> sys.stderr, "Unable to parse %s: %s" % (filename, e)
         return 0
 
     visitor = PathGraphingAstVisitor()

File flake8/pep8.py

 
 if '' == ''.encode():
     # Python 2: implicit encoding.
+
     def readlines(filename):
         return open(filename).readlines()
 else:
     # Python 3: decode to latin-1.
     # This function is lazy, it does not read the encoding declaration.
     # XXX: use tokenize.detect_encoding()
+
     def readlines(filename):        # NOQA
         return open(filename, encoding='latin-1').readlines()