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).
diff --git a/Lib/pickle.py b/Lib/pickle.py
index daae16e..80eaf0f 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -330,11 +330,11 @@
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