##// END OF EJS Templates
check for bytes instead of str for python3 compatibility
Jörgen Stenarson -
Show More
@@ -130,7 +130,7 b" def source_to_unicode(txt, errors='replace', skip_encoding_cookie=True):"
130 130 """
131 131 if isinstance(txt, unicode):
132 132 return txt
133 if isinstance(txt, str):
133 if isinstance(txt, bytes):
134 134 buffer = BytesIO(txt)
135 135 else:
136 136 buffer = txt
General Comments 0
You need to be logged in to leave comments. Login now