diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-03 21:05:51 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-03 21:05:51 (GMT) |
commit | aa97f0496412ed834aada921e29588ed16d68e40 (patch) | |
tree | cfe74cb3cd3ed5a27cbcfa404ea9fc8c73fd63f1 /Lib/plat-mac/EasyDialogs.py | |
parent | 5d7a7001d9df605606b249b3e11707d6d1ad2e3d (diff) | |
download | cpython-aa97f0496412ed834aada921e29588ed16d68e40.zip cpython-aa97f0496412ed834aada921e29588ed16d68e40.tar.gz cpython-aa97f0496412ed834aada921e29588ed16d68e40.tar.bz2 |
Fix various spots where int/long and str/unicode unification
lead to type checks like isinstance(foo, (str, str)) or
isinstance(foo, (int, int)).
Diffstat (limited to 'Lib/plat-mac/EasyDialogs.py')
-rw-r--r-- | Lib/plat-mac/EasyDialogs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plat-mac/EasyDialogs.py b/Lib/plat-mac/EasyDialogs.py index 6d157f9..dfed24f 100644 --- a/Lib/plat-mac/EasyDialogs.py +++ b/Lib/plat-mac/EasyDialogs.py @@ -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: |