Commit 142bdccd authored by Andreas Jung's avatar Andreas Jung

Collector #1299: fixed bug in sequence.sort()....any my first SVN commit

parent 96172040
......@@ -109,6 +109,8 @@ Zope Changes
Bugs fixed
- Collector #1299: Fixed bug in sequence.sort()
- Collector #1159: Added test for __MACH__ to initgroups.c so the
initgroups method becomes available on Mac OS X.
......
......@@ -98,7 +98,7 @@ def sort(sequence, sort=(), _=None, mapping=0):
else: akey = getattr(v, sk)
except (AttributeError, KeyError):
akey = None
if not basic_type(akey):
if not basic_type(type(akey)):
try: akey = akey()
except: pass
k.append(akey)
......
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