mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Catch locale.error as well. Fixes #788378. Will backport to 2.3.
This commit is contained in:
parent
25f90d5c5d
commit
8ad1dd7df1
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ except ImportError:
|
|||
try:
|
||||
import locale
|
||||
locale.setlocale(locale.LC_CTYPE, "")
|
||||
except ImportError:
|
||||
except (ImportError, locale.error):
|
||||
pass
|
||||
|
||||
encoding = "ascii"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue