Kaydet (Commit) 6508c7c7 authored tarafından Just van Rossum's avatar Just van Rossum

fixed 2.0 compat bug

üst 860106ae
......@@ -428,7 +428,7 @@ def caselesssort(alist):
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment