Read about our upcoming Code of Conduct on this issue

Commit de7ea8d2 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

fetch-watch-tags: lint errors

parent 20fe7c8b06cb
Pipeline #19484 passed with stage
in 23 seconds
......@@ -5,12 +5,10 @@
import re
import requests
import sys
import time
from subprocess import Popen, PIPE, check_call
from subprocess import Popen, PIPE
# Regular expression for a new version tag on the remote.
# The required whitespace after the last number excludes rc releases
# and similar on purpose
NEW_TAG_RX = re.compile(r'\[new tag\]\s+v(\d+)[.](\d+)[.](\d+)\s+')
......@@ -11,9 +9,10 @@
# Regular expression for a new version tag on the remote.
# The required whitespace after the last number excludes rc releases
# and similar on purpose
NEW_TAG_RX = re.compile(r'\[new tag\]\s+v(\d+)[.](\d+)[.](\d+)\s+')
def level2_version(s):
split = s.strip().split('.')
if len(split) != 2:
......@@ -109,7 +108,8 @@
data=post_data)
as_json = resp.json()
if resp.status_code < 400:
print("Issue %d created. Details: %r" % (as_json['iid'], as_json))
print("Issue %d created. Details: %r" % (as_json['iid'],
as_json))
else:
print("Error %d creating issue. Details: %r" % (
resp.status_code, as_json))
......
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