save_dict(): Added a comment about the control flow NealN missed.
This commit is contained in:
parent
13a25fb8e6
commit
82ca59e002
|
@ -561,7 +561,8 @@ class Pickler:
|
||||||
save(value)
|
save(value)
|
||||||
write(SETITEMS)
|
write(SETITEMS)
|
||||||
return
|
return
|
||||||
|
# else (dict is empty or a singleton), fall through to the
|
||||||
|
# SETITEM code at the end
|
||||||
else: # proto 0 -- can't use EMPTY_DICT or SETITEMS
|
else: # proto 0 -- can't use EMPTY_DICT or SETITEMS
|
||||||
write(MARK + DICT)
|
write(MARK + DICT)
|
||||||
self.memoize(obj)
|
self.memoize(obj)
|
||||||
|
|
Loading…
Reference in New Issue