Skip to content

Commit c435428

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5b05a54 commit c435428

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

update.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def call(cmd, split=True):
5454

5555

5656
def add_dockerfile_to_branch(new_tags, docker):
57-
5857
mcr_name, mcr_ver, link = docker
5958

6059
if len(mcr_ver.split(".")) == 2:
@@ -68,7 +67,6 @@ def add_dockerfile_to_branch(new_tags, docker):
6867
call(f"git checkout -b {mcr_name}")
6968

7069
for suffix in variants:
71-
7270
tag = f"{mcr_ver}{suffix}"
7371

7472
if not DRY_RUN and call(f"git rev-parse --verify {tag}"):
@@ -107,13 +105,11 @@ def add_dockerfile_to_branch(new_tags, docker):
107105

108106

109107
def list_mcr(soup):
110-
111108
ver_re = re.compile(r"(R2\d{3}.) \((\d\.\d+)\)")
112109
rel_re = re.compile(r"Release/(\d+)/")
113110

114111
dockers = []
115112
for row in soup.find_all("table")[0].find_all("tr"):
116-
117113
tds = row.find_all("td")
118114

119115
if len(tds) >= 4:
@@ -142,7 +138,6 @@ def list_mcr(soup):
142138

143139

144140
def main():
145-
146141
with request.urlopen(REL_URL) as res:
147142
if res.status != 200:
148143
raise RuntimeError("Could not open matlab release URL")

0 commit comments

Comments
 (0)