Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6508c7c

Browse files
author
Just van Rossum
committed
fixed 2.0 compat bug
1 parent 860106a commit 6508c7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mac/Tools/IDE/PyBrowser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def caselesssort(alist):
428428
def tuple_caselesssort(items):
429429
try:
430430
tupledlist = map(lambda tuple, lower = string.lower: (lower(tuple[0]), tuple), items)
431-
except TypeError:
431+
except (AttributeError, TypeError):
432432
items = items[:]
433433
items.sort()
434434
return items

0 commit comments

Comments
 (0)