Commit 930d15d6 authored by Jim Fulton's avatar Jim Fulton

implented suggested code consolidation

parent 39d088eb
...@@ -1324,13 +1324,8 @@ class TransactionMetaData(object): ...@@ -1324,13 +1324,8 @@ class TransactionMetaData(object):
def data(self, ob): def data(self, ob):
try: try:
data = self._data return self._data[id(ob)]
except AttributeError: except (AttributeError, KeyError):
raise KeyError(ob)
try:
return data[id(ob)]
except KeyError:
raise KeyError(ob) raise KeyError(ob)
def set_data(self, ob, ob_data): def set_data(self, ob, ob_data):
......
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