summaryrefslogtreecommitdiff
path: root/Lib/encodings/utf_8_sig.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/encodings/utf_8_sig.py')
-rw-r--r--Lib/encodings/utf_8_sig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/encodings/utf_8_sig.py b/Lib/encodings/utf_8_sig.py
index a0cc1af73d..07cd5eeb1b 100644
--- a/Lib/encodings/utf_8_sig.py
+++ b/Lib/encodings/utf_8_sig.py
@@ -57,7 +57,7 @@ class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
if codecs.BOM_UTF8.startswith(input):
# not enough data to decide if this really is a BOM
# => try again on the next call
- return (u"", 0)
+ return ("", 0)
else:
self.first = 0
else:
@@ -106,7 +106,7 @@ class StreamReader(codecs.StreamReader):
if len(input) < 3 and codecs.BOM_UTF8.startswith(input):
# not enough data to decide if this is a BOM
# => try again on the next call
- return (u"", 0)
+ return ("", 0)
self.decode = codecs.utf_8_decode
return decode(input, errors)