diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2024-01-17 23:39:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 04:39:12 +0000 |
commit | 6f4b242a03e521a55f0b9e440703b424ed18ce2f (patch) | |
tree | 8304999801f3e5d3dd51085c0c1771fd3c24c3ae /Lib/idlelib/rpc.py | |
parent | 8cda72037b262772399b2b7fc36dee9340d74fd6 (diff) | |
download | cpython-6f4b242a03e521a55f0b9e440703b424ed18ce2f.tar.gz cpython-6f4b242a03e521a55f0b9e440703b424ed18ce2f.zip |
gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' (#114227)
Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'.
Suffix 'object' with '_'.
Diffstat (limited to 'Lib/idlelib/rpc.py')
-rw-r--r-- | Lib/idlelib/rpc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py index b08b80c9004..3f0b2230dd1 100644 --- a/Lib/idlelib/rpc.py +++ b/Lib/idlelib/rpc.py @@ -158,8 +158,8 @@ class SocketIO: s = s + " " + str(a) print(s, file=sys.__stderr__) - def register(self, oid, object): - self.objtable[oid] = object + def register(self, oid, object_): + self.objtable[oid] = object_ def unregister(self, oid): try: |