commit | 06dbff3b1f16dc232df0190cfed4b3af81aecda3 | [log] [tgz] |
---|---|---|
author | Ezio Melotti <ezio.melotti@gmail.com> | Fri Mar 05 15:17:26 2010 +0000 |
committer | Ezio Melotti <ezio.melotti@gmail.com> | Fri Mar 05 15:17:26 2010 +0000 |
tree | cf797dadc57f4e97ea30b00f25f73a7fa428d4af | |
parent | 76e0d1a6efac2efbb6b9de739d43be827e7ea8ec [diff] [blame] |
sys.getdefaultencoding() can return None.
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index 3110ea9..627e42f 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py
@@ -86,6 +86,7 @@ # the return encoding can be uppercase fs_encoding = sys.getfilesystemencoding().lower() + fs_encoding = fs_encoding.lower() if fs_encoding else 'ascii' # covers utf-8 and Windows ANSI code pages # one non-space symbol from every page