##// END OF EJS Templates
py3: cast decode() argument to system string...
Gregory Szorc -
r36135:9e47bfbe default
parent child Browse files
Show More
@@ -206,7 +206,7 b" def mimetextpatch(s, subtype='plain', di"
206 return mimetextqp(s, subtype, 'us-ascii')
206 return mimetextqp(s, subtype, 'us-ascii')
207 for charset in cs:
207 for charset in cs:
208 try:
208 try:
209 s.decode(charset)
209 s.decode(pycompat.sysstr(charset))
210 return mimetextqp(s, subtype, codec2iana(charset))
210 return mimetextqp(s, subtype, codec2iana(charset))
211 except UnicodeDecodeError:
211 except UnicodeDecodeError:
212 pass
212 pass
General Comments 0
You need to be logged in to leave comments. Login now