mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-36431: Use PEP 448 dict unpacking for merging two dicts. (GH-12553)
This commit is contained in:
parent
384b81d923
commit
da0847048a
6 changed files with 14 additions and 29 deletions
|
@ -64,8 +64,7 @@ def dumps(obj, protocol=None):
|
|||
|
||||
|
||||
class CodePickler(pickle.Pickler):
|
||||
dispatch_table = {types.CodeType: pickle_code}
|
||||
dispatch_table.update(copyreg.dispatch_table)
|
||||
dispatch_table = {types.CodeType: pickle_code, **copyreg.dispatch_table}
|
||||
|
||||
|
||||
BUFSIZE = 8*1024
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue