##// END OF EJS Templates
Update IPython/utils/openpy.py
Matthias Bussonnier -
Show More
@@ -74,7 +74,7 b' def read_py_file(filename, skip_encoding_cookie=True):'
74 A unicode string containing the contents of the file.
74 A unicode string containing the contents of the file.
75 """
75 """
76 filepath = Path(filename)
76 filepath = Path(filename)
77 with filepath.open() as f: # the open function defined in this module.
77 with open(filepath) as f: # the open function defined in this module.
78 if skip_encoding_cookie:
78 if skip_encoding_cookie:
79 return "".join(strip_encoding_cookie(f))
79 return "".join(strip_encoding_cookie(f))
80 else:
80 else:
General Comments 0
You need to be logged in to leave comments. Login now