mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Give in to tabnanny.
This commit is contained in:
parent
5810297052
commit
f62cf61548
1 changed files with 5 additions and 5 deletions
|
@ -31,14 +31,14 @@ or may not be necessary to flush changes to disk.
|
||||||
# Try using cPickle and cStringIO if available.
|
# Try using cPickle and cStringIO if available.
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from cPickle import Pickler, Unpickler
|
from cPickle import Pickler, Unpickler
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from pickle import Pickler, Unpickler
|
from pickle import Pickler, Unpickler
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
|
|
||||||
|
|
||||||
class Shelf:
|
class Shelf:
|
||||||
|
@ -75,7 +75,7 @@ class Shelf:
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
try:
|
try:
|
||||||
self.dict.close()
|
self.dict.close()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
self.dict = 0
|
self.dict = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue