commit | 4aa8f8e225afeec1726a68e596b16dc4ecf2225d | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sat Oct 12 15:00:44 2013 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sat Oct 12 15:00:44 2013 +0200 |
tree | be19b134fcb961525365e7b08631af2f6d3bc07f | |
parent | e8785ff82a1b3227ace7c52979624756d32b393f [diff] [blame] |
Fix wrong exception in _bootlocale (apparently this error condition is never triggered)
diff --git a/Lib/_bootlocale.py b/Lib/_bootlocale.py index efe4023..4bccac1 100644 --- a/Lib/_bootlocale.py +++ b/Lib/_bootlocale.py
@@ -13,7 +13,7 @@ else: try: _locale.CODESET - except ImportError: + except AttributeError: def getpreferredencoding(do_setlocale=True): # This path for legacy systems needs the more complex # getdefaultlocale() function, import the full locale module.