Show More
@@ -32,7 +32,7 b" def source_to_unicode(txt, errors='replace', skip_encoding_cookie=True):" | |||
|
32 | 32 | except SyntaxError: |
|
33 | 33 | encoding = "ascii" |
|
34 | 34 | buffer.seek(0) |
|
35 |
|
|
|
35 | with TextIOWrapper(buffer, encoding, errors=errors, line_buffering=True) as text: | |
|
36 | 36 | text.mode = 'r' |
|
37 | 37 | if skip_encoding_cookie: |
|
38 | 38 | return u"".join(strip_encoding_cookie(text)) |
General Comments 0
You need to be logged in to leave comments.
Login now