Mercurial > cpython-lru_cache-weakref
diff Mac/Tools/IDE/PyBrowser.py @ 15282:bf21e417bed2 legacy-trunk
fixed 2.0 compat bug
| author | Just van Rossum <just@lettererror.com> |
|---|---|
| date | Fri, 20 Oct 2000 06:34:57 +0000 |
| parents | 7fb8b0f13da0 |
| children | d170c1e772c5 |
line wrap: on
line diff
--- a/Mac/Tools/IDE/PyBrowser.py Fri Oct 20 03:03:18 2000 +0000 +++ b/Mac/Tools/IDE/PyBrowser.py Fri Oct 20 06:34:57 2000 +0000 @@ -428,7 +428,7 @@ def tuple_caselesssort(items): try: tupledlist = map(lambda tuple, lower = string.lower: (lower(tuple[0]), tuple), items) - except TypeError: + except (AttributeError, TypeError): items = items[:] items.sort() return items
