mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
-- removed get_default compatibility kludge
-- added a few extra comments to locale.py
This commit is contained in:
parent
dde6164402
commit
663809ed83
2 changed files with 4 additions and 3 deletions
|
@ -126,7 +126,7 @@ del exit
|
|||
#
|
||||
def locale_aware_defaultencoding():
|
||||
import locale
|
||||
code, encoding = locale.get_default()
|
||||
code, encoding = locale.getdefaultlocale()
|
||||
if encoding is None:
|
||||
encoding = 'ascii'
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue