Show More
@@ -78,7 +78,7 b' def read_py_file(filename, skip_encoding_cookie=True):' | |||||
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: | |
81 |
return f |
|
81 | return f.read() | |
82 |
|
82 | |||
83 | def read_py_url(url, errors='replace', skip_encoding_cookie=True): |
|
83 | def read_py_url(url, errors='replace', skip_encoding_cookie=True): | |
84 | """Read a Python file from a URL, using the encoding declared inside the file. |
|
84 | """Read a Python file from a URL, using the encoding declared inside the file. |
General Comments 0
You need to be logged in to leave comments.
Login now