Commit da6c14eb authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! fixup! py2/py3: dict_key does not have sort().

parent d645ffd1
...@@ -41,9 +41,7 @@ from OFS.Image import Pdata, Image as OFSImage ...@@ -41,9 +41,7 @@ from OFS.Image import Pdata, Image as OFSImage
from DateTime import DateTime from DateTime import DateTime
def makeSortedTuple(kw): def makeSortedTuple(kw):
items = kw.items() return tuple(sorted(kw.items()))
items.sort()
return tuple(items)
def hashPdataObject(pdata_object): def hashPdataObject(pdata_object):
"""Pdata objects are iterable, use this feature strongly """Pdata objects are iterable, use this feature strongly
......
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