Skip to content
Snippets Groups Projects
Commit a1deaaff authored by Alexander Kreft's avatar Alexander Kreft
Browse files

Merge branch 'f-kwargs-to-parameters' of...

Merge branch 'f-kwargs-to-parameters' of gitlab.indiscale.com:caosdb/src/caosdb-pylib into f-kwargs-to-parameters
parents 272fc8fc 6083800e
No related branches found
No related tags found
2 merge requests!33MAINT: change arguments of create_user,!23f kwargs to actual parameters
Pipeline #13640 passed
......@@ -47,7 +47,7 @@ pylint:
tags: [ docker ]
stage: linting
script:
- pylint3 --unsafe-load-any-extension=y -d all -e E,F src/caosdb/common
- pylint --unsafe-load-any-extension=y -d all -e E,F src/caosdb/common
allow_failure: true
......
......@@ -517,9 +517,9 @@ def getOriginUrlIn(folder):
with open(t.name, "r") as t:
urlString = "Fetch URL:"
for l in t.readlines():
if urlString in l:
return l[l.find(urlString) + len(urlString):].strip()
for line in t.readlines():
if urlString in line:
return line[line.find(urlString) + len(urlString):].strip()
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment