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).
This commit is contained in:
parent
518df0dae4
commit
bd1cdb9227
@ -330,11 +330,11 @@ class Pickler:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def save_pers(self, pid):
|
def save_pers(self, pid):
|
||||||
if not self.bin:
|
if self.bin:
|
||||||
self.write(PERSID + str(pid) + '\n')
|
|
||||||
else:
|
|
||||||
self.save(pid)
|
self.save(pid)
|
||||||
self.write(BINPERSID)
|
self.write(BINPERSID)
|
||||||
|
else:
|
||||||
|
self.write(PERSID + str(pid) + '\n')
|
||||||
|
|
||||||
def save_reduce(self, acallable, arg_tup, state = None):
|
def save_reduce(self, acallable, arg_tup, state = None):
|
||||||
write = self.write
|
write = self.write
|
||||||
|
Loading…
x
Reference in New Issue
Block a user