Show More
@@ -130,7 +130,7 b" def source_to_unicode(txt, errors='replace', skip_encoding_cookie=True):" | |||||
130 | """ |
|
130 | """ | |
131 | if isinstance(txt, unicode): |
|
131 | if isinstance(txt, unicode): | |
132 | return txt |
|
132 | return txt | |
133 |
if isinstance(txt, |
|
133 | if isinstance(txt, bytes): | |
134 | buffer = BytesIO(txt) |
|
134 | buffer = BytesIO(txt) | |
135 | else: |
|
135 | else: | |
136 | buffer = txt |
|
136 | buffer = txt |
General Comments 0
You need to be logged in to leave comments.
Login now