mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #19754: Make pickletools.optimize respect the frame size target.
This commit is contained in:
parent
53dd8167ff
commit
28d271ef6b
3 changed files with 2 additions and 14 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue