Commit 67b4b06a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

py2/py3: make HBTreeFolder2 code compatible.

parent a6e08a22
...@@ -423,7 +423,10 @@ class HBTreeFolder2Base (Persistent): ...@@ -423,7 +423,10 @@ class HBTreeFolder2Base (Persistent):
s.append((k, six.iteritems(v))) s.append((k, six.iteritems(v)))
break break
s.append((k, six.iteritems(v))) s.append((k, six.iteritems(v)))
if six.PY2:
r.sort() r.sort()
else:
r.sort(key=lambda e: '' if e is None else e)
return r return r
security.declareProtected(access_contents_information, security.declareProtected(access_contents_information,
......
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