Commit 418250a7 authored by Jim Fulton's avatar Jim Fulton

Fixed to handle null (empty or None) specifications.

parent b2f7343d
......@@ -88,11 +88,13 @@
class UndoLogCompatible:
def undoInfo(self, first, last, specification):
if specification:
def filter(desc, spec=specification.items()):
get=desc.get
for k, v in spec:
if get(k, None) != v:
return 0
return 1
else: filter=None
return self.undoLog(first, last, filter)
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