[Python-checkins] python/dist/src/Lib pickle.py,1.87,1.88
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Mon, 27 Jan 2003 17:03:12 -0800
- Previous message: [Python-checkins] python/dist/src/Lib pickle.py,1.86,1.87
- Next message: [Python-checkins] python/nondist/sandbox/itertools itertools.c,1.12,1.13 libitertools.tex,1.11,1.12 test_itertools.py,1.7,1.8 todo.txt,1.11,1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv19136/Lib
Modified Files:
pickle.py
Log Message:
save_pers(): Switched the order of cases, to get rid of a "not", and to
make the bin-vs-not-bin order consistent with what other routines try to
do (they almost all handle the bin case first).
Index: pickle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pickle.py,v
retrieving revision 1.87
retrieving revision 1.88
diff -C2 -d -r1.87 -r1.88
*** pickle.py 28 Jan 2003 01:00:38 -0000 1.87
--- pickle.py 28 Jan 2003 01:03:10 -0000 1.88
***************
*** 331,339 ****
def save_pers(self, pid):
! if not self.bin:
! self.write(PERSID + str(pid) + '\n')
! else:
self.save(pid)
self.write(BINPERSID)
def save_reduce(self, acallable, arg_tup, state = None):
--- 331,339 ----
def save_pers(self, pid):
! if self.bin:
self.save(pid)
self.write(BINPERSID)
+ else:
+ self.write(PERSID + str(pid) + '\n')
def save_reduce(self, acallable, arg_tup, state = None):
- Previous message: [Python-checkins] python/dist/src/Lib pickle.py,1.86,1.87
- Next message: [Python-checkins] python/nondist/sandbox/itertools itertools.c,1.12,1.13 libitertools.tex,1.11,1.12 test_itertools.py,1.7,1.8 todo.txt,1.11,1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]