mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Rip out all the u"..." literals and calls to unicode().
This commit is contained in:
parent
572dbf8f13
commit
ef87d6ed94
200 changed files with 18074 additions and 18074 deletions
|
@ -20,7 +20,7 @@ if TESTFN_ENCODED.decode(TESTFN_ENCODING) != TESTFN_UNICODE:
|
|||
# encoding instead.
|
||||
import sys
|
||||
try:
|
||||
TESTFN_UNICODE = unicode("@test-\xe0\xf2", sys.getfilesystemencoding())
|
||||
TESTFN_UNICODE = str("@test-\xe0\xf2", sys.getfilesystemencoding())
|
||||
TESTFN_ENCODED = TESTFN_UNICODE.encode(TESTFN_ENCODING)
|
||||
if '?' in TESTFN_ENCODED:
|
||||
# MBCS will not report the error properly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue