From 288dc6cf4c6039e71050c5c22f8ad8bdaf02d790 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 30 Oct 2003 02:20:36 +0000 Subject: [PATCH] Changed repr to pprint.pformat. --- src/structures.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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