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

implented suggested code consolidation

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