Merge comparisons with 'in'

This commit is contained in:
Jochen Sprickerhof 2022-09-05 17:14:51 +02:00
parent f4739ef3c0
commit cf0100cf11
No known key found for this signature in database
GPG key ID: 5BFFDCC258E69433
6 changed files with 19 additions and 17 deletions

View file

@ -142,7 +142,7 @@ def get_app_from_url(url):
app.RepoType = 'git'
app.SourceCode = url
app.IssueTracker = url + '/issues'
elif parsed.netloc == 'gitlab.com' or parsed.netloc == 'framagit.org':
elif parsed.netloc in ('gitlab.com', 'framagit.org'):
# git can be fussy with gitlab URLs unless they end in .git
if url.endswith('.git'):
url = url[:-4]