~ubuntu-branches/debian/experimental/spyder/experimental

« back to all changes in this revision

Viewing changes to spyderlib/utils/dochelpers.py

  • Committer: Package Import Robot
  • Author(s): Picca Frédéric-Emmanuel, Ghislain Antony Vaillant, Picca Frédéric-Emmanuel
  • Date: 2015-02-26 13:31:59 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20150226133159-zvom6ax6mah3irhv
Tags: 2.3.3+dfsg-1~exp1
[Ghislain Antony Vaillant]
* New upstream release.

[Picca Frédéric-Emmanuel]
* Upstream moved to github (watch, control and copyright file updated)

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
    multiline_re = objname + r'\([^\)]+(?<=[\w\]\}\'"])\)(?!,)'
176
176
    multiline_end_parenleft_re = r'(%s\([^\)]+(\),\n.+)+(?<=[\w\]\}\'"])\))'
177
177
    # Grabbing signatures
 
178
    if not text:
 
179
        text = ''
178
180
    sigs_1 = re.findall(oneline_re + '|' + multiline_re, text)
179
181
    sigs_2 = [g[0] for g in re.findall(multiline_end_parenleft_re % objname, text)]
180
182
    all_sigs = sigs_1 + sigs_2