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() |