mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Fix various spots where int/long and str/unicode unification
lead to type checks like isinstance(foo, (str, str)) or isinstance(foo, (int, int)).
This commit is contained in:
parent
5d7a7001d9
commit
aa97f04964
14 changed files with 46 additions and 51 deletions
|
@ -713,7 +713,7 @@ def AskFileForSave(
|
|||
raise TypeError, "Cannot pass wanted=FSRef to AskFileForSave"
|
||||
if issubclass(tpwanted, Carbon.File.FSSpec):
|
||||
return tpwanted(rr.selection[0])
|
||||
if issubclass(tpwanted, (str, str)):
|
||||
if issubclass(tpwanted, str):
|
||||
if sys.platform == 'mac':
|
||||
fullpath = rr.selection[0].as_pathname()
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue