summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/calltip.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2020-09-22 05:43:55 (GMT)
committerGitHub <noreply@github.com>2020-09-22 05:43:55 (GMT)
commit40a0625792e795cd41c4ba20475e3b770b53817a (patch)
tree5716b22dd801b0b7e22fb349c45d45cdcf844939 /Lib/idlelib/calltip.py
parent6c33385e3a1dce31d7b9037eebfc584075795dba (diff)
downloadcpython-40a0625792e795cd41c4ba20475e3b770b53817a.zip
cpython-40a0625792e795cd41c4ba20475e3b770b53817a.tar.gz
cpython-40a0625792e795cd41c4ba20475e3b770b53817a.tar.bz2
bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)
The marker was added to the language in 3.8 and 3.7 only gets security patches.
Diffstat (limited to 'Lib/idlelib/calltip.py')
-rw-r--r--Lib/idlelib/calltip.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/idlelib/calltip.py b/Lib/idlelib/calltip.py
index d4092c7..b02f872 100644
--- a/Lib/idlelib/calltip.py
+++ b/Lib/idlelib/calltip.py
@@ -118,7 +118,6 @@ _INDENT = ' '*4 # for wrapped signatures
_first_param = re.compile(r'(?<=\()\w*\,?\s*')
_default_callable_argspec = "See source or doc"
_invalid_method = "invalid method signature"
-_argument_positional = " # '/' marks preceding args as positional-only."
def get_argspec(ob):
'''Return a string describing the signature of a callable object, or ''.
@@ -146,9 +145,6 @@ def get_argspec(ob):
else:
argspec = ''
- if '/' in argspec and len(argspec) < _MAX_COLS - len(_argument_positional):
- # Add explanation TODO remove after 3.7, before 3.9.
- argspec += _argument_positional
if isinstance(fob, type) and argspec == '()':
# If fob has no argument, use default callable argspec.
argspec = _default_callable_argspec