diff options
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/Charset.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/email/Charset.py b/Lib/email/Charset.py index 4a7ef69..9a54dab 100644 --- a/Lib/email/Charset.py +++ b/Lib/email/Charset.py @@ -7,8 +7,10 @@ except NameError: def _is_unicode(x): return 1==0 else: + # Use UnicodeType instead of built-in unicode for Py2.1 compatibility + from types import UnicodeType def _is_unicode(x): - return isinstance(x, unicode) + return isinstance(x, UnicodeType) from email.Encoders import encode_7or8bit import email.base64MIME |