##// END OF EJS Templates
py3: cast character set to bytes...
Gregory Szorc -
r36136:6ea7f1c1 default
parent child Browse files
Show More
@@ -187,7 +187,7 b' def validateconfig(ui):'
187
187
188 def codec2iana(cs):
188 def codec2iana(cs):
189 ''''''
189 ''''''
190 cs = email.charset.Charset(cs).input_charset.lower()
190 cs = pycompat.sysbytes(email.charset.Charset(cs).input_charset.lower())
191
191
192 # "latin1" normalizes to "iso8859-1", standard calls for "iso-8859-1"
192 # "latin1" normalizes to "iso8859-1", standard calls for "iso-8859-1"
193 if cs.startswith("iso") and not cs.startswith("iso-"):
193 if cs.startswith("iso") and not cs.startswith("iso-"):
General Comments 0
You need to be logged in to leave comments. Login now