mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-10-06 11:28:45 +02:00
Changed repr to pprint.pformat.
This commit is contained in:
parent
8819240864
commit
288dc6cf4c
@ -38,6 +38,7 @@ Data structures for Python.
|
|||||||
import fix
|
import fix
|
||||||
|
|
||||||
import types
|
import types
|
||||||
|
import pprint
|
||||||
import string
|
import string
|
||||||
|
|
||||||
class RingBuffer(object):
|
class RingBuffer(object):
|
||||||
@ -366,7 +367,7 @@ class PersistentDictionary(dict):
|
|||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
fd = file(self.filename, 'w')
|
fd = file(self.filename, 'w')
|
||||||
fd.write(repr(self))
|
fd.write(pprint.pformat(self))
|
||||||
fd.close()
|
fd.close()
|
||||||
|
|
||||||
flush = close
|
flush = close
|
||||||
|
Loading…
Reference in New Issue
Block a user