Plugins/CheckerPlugins/CodeStyleChecker/pep8.py

branch
6_0_x
changeset 4330
2c278493b31e
parent 4022
f5f42921717e
child 4555
861e1741985c
equal deleted inserted replaced
4329:399e14805a5c 4330:2c278493b31e
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