mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Merged revisions 72399 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72399 | jeroen.ruigrok | 2009-05-06 15:16:36 +0200 (wo, 06 mei 2009) | 4 lines Be more explicit about the error we are catching. Requested by: Antoine Pitrou ........
This commit is contained in:
parent
741191f17a
commit
6ca2e0ac5b
1 changed files with 1 additions and 1 deletions
|
|
@ -566,7 +566,7 @@ def getpreferredencoding(do_setlocale = True):
|
|||
oldloc = setlocale(LC_CTYPE)
|
||||
try:
|
||||
setlocale(LC_CTYPE, "")
|
||||
except:
|
||||
except Error:
|
||||
pass
|
||||
result = nl_langinfo(CODESET)
|
||||
setlocale(LC_CTYPE, oldloc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue