mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.11] gh-103668: Run pyugrade on idlelib (GH-103671) (#103730)
---------
(cherry picked from commit bd2dca035a
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Terry Jan Reedy tjreedy@udel.edu
This commit is contained in:
parent
7b2ac6cf3d
commit
5054459678
17 changed files with 50 additions and 50 deletions
|
@ -174,7 +174,7 @@ class SocketIO:
|
|||
except TypeError:
|
||||
return ("ERROR", "Bad request format")
|
||||
if oid not in self.objtable:
|
||||
return ("ERROR", "Unknown object id: %r" % (oid,))
|
||||
return ("ERROR", f"Unknown object id: {oid!r}")
|
||||
obj = self.objtable[oid]
|
||||
if methodname == "__methods__":
|
||||
methods = {}
|
||||
|
@ -185,7 +185,7 @@ class SocketIO:
|
|||
_getattributes(obj, attributes)
|
||||
return ("OK", attributes)
|
||||
if not hasattr(obj, methodname):
|
||||
return ("ERROR", "Unsupported method name: %r" % (methodname,))
|
||||
return ("ERROR", f"Unsupported method name: {methodname!r}")
|
||||
method = getattr(obj, methodname)
|
||||
try:
|
||||
if how == 'CALL':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue