summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/CallTips.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-07-26 22:21:32 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2013-07-26 22:21:32 (GMT)
commit349065500a0b21c0c296b4fb4b0484f5ac7d35cc (patch)
tree20564590d78be6717e29870fedd8c5568a617f30 /Lib/idlelib/CallTips.py
parentd5648ac382e3374d71545be6a04880c1f2c6ffb8 (diff)
downloadcpython-349065500a0b21c0c296b4fb4b0484f5ac7d35cc.zip
cpython-349065500a0b21c0c296b4fb4b0484f5ac7d35cc.tar.gz
cpython-349065500a0b21c0c296b4fb4b0484f5ac7d35cc.tar.bz2
Issue #18539: Calltips now work for float default arguments.
Diffstat (limited to 'Lib/idlelib/CallTips.py')
-rw-r--r--Lib/idlelib/CallTips.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py
index 0fdef11..c29f89b 100644
--- a/Lib/idlelib/CallTips.py
+++ b/Lib/idlelib/CallTips.py
@@ -163,7 +163,7 @@ def get_arg_text(ob):
if fob.func_code.co_flags & 0x8:
items.append("***")
arg_text = ", ".join(items)
- arg_text = "(%s)" % re.sub("\.\d+", "<tuple>", arg_text)
+ arg_text = "(%s)" % re.sub("(?<!\d)\.\d+", "<tuple>", arg_text)
# See if we can use the docstring
doc = getattr(ob, "__doc__", "")
if doc: