diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-03-27 06:02:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 06:02:28 (GMT) |
commit | da0847048aa7f934573fa449cea8643def056aa5 (patch) | |
tree | ab70f219c1e98984908b04a175ced3a155df7036 /Lib/idlelib | |
parent | 384b81d923addd52125e94470b11d2574ca266a9 (diff) | |
download | cpython-da0847048aa7f934573fa449cea8643def056aa5.zip cpython-da0847048aa7f934573fa449cea8643def056aa5.tar.gz cpython-da0847048aa7f934573fa449cea8643def056aa5.tar.bz2 |
bpo-36431: Use PEP 448 dict unpacking for merging two dicts. (GH-12553)
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/rpc.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py index 9962477..f035bde 100644 --- a/Lib/idlelib/rpc.py +++ b/Lib/idlelib/rpc.py @@ -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 |