Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5cf486 + 8b23f5c commit 58905e9Copy full SHA for 58905e9
2 files changed
Lib/test/test___all__.py
@@ -72,13 +72,14 @@ def test_all(self):
72
73
# rlcompleter needs special consideration; it import readline which
74
# initializes GNU readline which calls setlocale(LC_CTYPE, "")... :-(
75
+ import locale
76
+ locale_tuple = locale.getlocale(locale.LC_CTYPE)
77
try:
78
import rlcompleter
- import locale
79
except ImportError:
80
pass
- else:
81
- locale.setlocale(locale.LC_CTYPE, 'C')
+ finally:
82
+ locale.setlocale(locale.LC_CTYPE, locale_tuple)
83
84
ignored = []
85
failed_imports = []
Misc/ACKS
@@ -222,6 +222,7 @@ Per Cederqvist
222
Matej Cepl
223
Carl Cerecke
224
Octavian Cerna
225
+Michael Cetrulo
226
Dave Chambers
227
Pascal Chambon
228
John Chandler
0 commit comments