Issue #19754: Make pickletools.optimize respect the frame size target.

This commit is contained in:
Alexandre Vassalotti 2013-12-01 16:27:46 -08:00
parent 53dd8167ff
commit 28d271ef6b
3 changed files with 2 additions and 14 deletions

View file

@ -2313,6 +2313,7 @@ def optimize(p):
buf.start_framing()
for start, stop, putid in opcodes:
if putid in gets:
#buf.commit_frame()
buf.write(p[start:stop])
if proto >= 4:
buf.end_framing()