Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 604b94d

Browse files
committed
Revert "bpo-29571: Use correct locale encoding in test_re (#149)" (#554)
This reverts commit ace5c0f.
1 parent 78ad039 commit 604b94d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/test/test_re.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ def test_ascii_and_unicode_flag(self):
14021402

14031403
def test_locale_flag(self):
14041404
import locale
1405-
enc = locale.getpreferredencoding(False)
1405+
_, enc = locale.getlocale(locale.LC_CTYPE)
14061406
# Search non-ASCII letter
14071407
for i in range(128, 256):
14081408
try:

Misc/NEWS

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ Library
134134

135135
- bpo-29110: Fix file object leak in aifc.open() when file is given as a
136136
filesystem path and is not in valid AIFF format. Patch by Anthony Zhang.
137+
- Issue #24932: Use proper command line parsing in _testembed
137138

138139
- Issue #28556: Various updates to typing module: typing.Counter, typing.ChainMap,
139140
improved ABC caching, etc. Original PRs by Jelle Zijlstra, Ivan Levkivskyi,

0 commit comments

Comments
 (0)