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

save_bool(): simplified.

üst cbd0a32d
...@@ -358,10 +358,7 @@ class Pickler: ...@@ -358,10 +358,7 @@ class Pickler:
dispatch[NoneType] = save_none dispatch[NoneType] = save_none
def save_bool(self, object): def save_bool(self, object):
if object: self.write(object and TRUE or FALSE)
self.write(TRUE)
else:
self.write(FALSE)
dispatch[bool] = save_bool dispatch[bool] = save_bool
def save_int(self, object): def save_int(self, object):
......
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