mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -23,7 +23,7 @@ fcre = re.compile(r'^From ', re.MULTILINE)
|
|||
def _is8bitstring(s):
|
||||
if isinstance(s, str):
|
||||
try:
|
||||
unicode(s, 'us-ascii')
|
||||
str(s, 'us-ascii')
|
||||
except UnicodeError:
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue