mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
||||
try:
|
||||
UnicodeType = unicode
|
||||
StringTypes = [StringType, UnicodeType]
|
||||
StringTypes = (StringType, UnicodeType)
|
||||
except NameError:
|
||||
StringTypes = [StringType]
|
||||
StringTypes = (StringType,)
|
||||
|
||||
BufferType = type(buffer(''))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue