mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Patch #487455: make types.StringTypes a tuple.
This commit is contained in:
parent
44ddbde3ab
commit
8b6bd42e08
1 changed files with 2 additions and 2 deletions
|
@ -26,9 +26,9 @@ except NameError:
|
||||||
StringType = str
|
StringType = str
|
||||||
try:
|
try:
|
||||||
UnicodeType = unicode
|
UnicodeType = unicode
|
||||||
StringTypes = [StringType, UnicodeType]
|
StringTypes = (StringType, UnicodeType)
|
||||||
except NameError:
|
except NameError:
|
||||||
StringTypes = [StringType]
|
StringTypes = (StringType,)
|
||||||
|
|
||||||
BufferType = type(buffer(''))
|
BufferType = type(buffer(''))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue