mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
PEP8 radio/util/add-issue-links.py
Remove unused imports, fix indentation
This commit is contained in:
parent
b8800ed30e
commit
50d8e21533
1 changed files with 26 additions and 30 deletions
|
@ -4,10 +4,6 @@
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
import traceback
|
|
||||||
import time
|
|
||||||
import re
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,13 +29,13 @@ while True:
|
||||||
skip = True
|
skip = True
|
||||||
|
|
||||||
if not skip:
|
if not skip:
|
||||||
#line = line.strip()
|
# line = line.strip()
|
||||||
#print "line: %s" % line
|
# print("line: %s" % line)
|
||||||
found = re.findall(pattern, line)
|
found = re.findall(pattern, line)
|
||||||
if len(found) > 0:
|
if len(found) > 0:
|
||||||
for issue in found:
|
for issue in found:
|
||||||
line = line.replace(issue, '')
|
line = line.replace(issue, '')
|
||||||
#add issues
|
# add issues
|
||||||
issue_links = ["<a href=https://github.com/opentx/opentx/issues/%d>#%d</a>" % (int(issue[1:]), int(issue[1:])) for issue in found]
|
issue_links = ["<a href=https://github.com/opentx/opentx/issues/%d>#%d</a>" % (int(issue[1:]), int(issue[1:])) for issue in found]
|
||||||
links = "(" + ", ".join(issue_links) + ")"
|
links = "(" + ", ".join(issue_links) + ")"
|
||||||
line = "<li>" + line + " " + links + "</li>"
|
line = "<li>" + line + " " + links + "</li>"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue