Kaydet (Commit) 61bfb736 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

SF bug #769142: CallTip trimming may loop forever.

Needs to be backported to both IDLE and IDLEFORK.
üst 6702d8af
......@@ -162,10 +162,8 @@ def get_arg_text(ob):
except:
pass
# See if we can use the docstring
doc = getattr(ob, "__doc__", "")
doc = getattr(ob, "__doc__", "").lstrip()
if doc:
while doc[:1] in " \t\n":
doc = doc[1:]
pos = doc.find("\n")
if pos < 0 or pos > 70:
pos = 70
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment