Kaydet (Commit) bd1cdb92 authored tarafından Tim Peters's avatar Tim Peters

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).
üst 518df0da
......@@ -330,11 +330,11 @@ class Pickler:
return None
def save_pers(self, pid):
if not self.bin:
self.write(PERSID + str(pid) + '\n')
else:
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):
write = self.write
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment