diff --git a/src/structures.py b/src/structures.py index 0919a28da..563c76918 100644 --- a/src/structures.py +++ b/src/structures.py @@ -38,6 +38,7 @@ Data structures for Python. import fix import types +import pprint import string class RingBuffer(object): @@ -366,7 +367,7 @@ class PersistentDictionary(dict): def close(self): fd = file(self.filename, 'w') - fd.write(repr(self)) + fd.write(pprint.pformat(self)) fd.close() flush = close