mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
Fixed bug #1915: Python compiles with --enable-unicode=no again. However several extension methods and modules do not work without unicode support.
This commit is contained in:
parent
964ca4274f
commit
082c9b0267
4 changed files with 12 additions and 4 deletions
|
@ -824,7 +824,11 @@ except NameError:
|
|||
(True, False) = (1, 0)
|
||||
|
||||
def isbasestring(x):
|
||||
return isinstance(x, types.StringType) or isinstance(x, types.UnicodeType)
|
||||
try:
|
||||
return isinstance(x, basestring)
|
||||
except:
|
||||
return isinstance(x, types.StringType) or isinstance(x, types.UnicodeType)
|
||||
|
||||
|
||||
class Values:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue