~raoul-snyman/openlp/pep440

« back to all changes in this revision

Viewing changes to scripts/lp-merge.py

  • Committer: Tomas Groth
  • Date: 2018-07-07 06:45:39 UTC
  • mfrom: (2821.1.7 pycodestyle)
  • Revision ID: tomasgroth@yahoo.dk-20180707064539-5q0enwn43pbjou3v
Fix pep8 and pylint errors detected by new version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
    script_tag = soup.find('script', attrs={"id": "codereview-script"})
125
125
    content = script_tag.contents[0]
126
126
    start_pos = content.find('source_revid') + 16
127
 
    pattern = re.compile('.*\w-\d\d\d\d\d+')
 
127
    pattern = re.compile(r'.*\w-\d\d\d\d\d+')
128
128
    match = pattern.match(content[start_pos:])
129
129
    merge_info['author_email'] = match.group()[:-15]
130
130
    # Launchpad doesn't supply the author's true name, so we'll just grab whatever they use for display on LP