Plugins/CheckerPlugins/CodeStyleChecker/pep8.py

changeset 4331
711e7c35a49b
parent 4021
195a471c327b
child 4555
861e1741985c
equal deleted inserted replaced
4327:ff666d8230f7 4331:711e7c35a49b
1044 ############################################################################## 1044 ##############################################################################
1045 # Helper functions 1045 # Helper functions
1046 ############################################################################## 1046 ##############################################################################
1047 1047
1048 1048
1049 if '' == ''.encode(): 1049 if '' == ''.encode("utf-8"):
1050 # Python 2: implicit encoding. 1050 # Python 2: implicit encoding.
1051 def readlines(filename): 1051 def readlines(filename):
1052 """Read the source code.""" 1052 """Read the source code."""
1053 with open(filename) as f: 1053 with open(filename) as f:
1054 return f.readlines() 1054 return f.readlines()

eric ide

mercurial