mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
remove unused imports, rectify isort violations
Files got into the branch that violate both PEP-8 guidelines and isorts. This fixes them. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
4d1faca447
commit
5ceeb88bee
7 changed files with 12 additions and 21 deletions
|
@ -305,9 +305,9 @@ def main(): # noqa: C901
|
|||
|
||||
try:
|
||||
metadata_pkgbase = metadata['pkgbase']
|
||||
except KeyError as e:
|
||||
except KeyError:
|
||||
die_commit('invalid .SRCINFO, does not contain a pkgbase (is the file empty?)',
|
||||
str(commit.id))
|
||||
str(commit.id))
|
||||
if not re.match(repo_regex, metadata_pkgbase):
|
||||
die_commit('invalid pkgbase: {:s}'.format(metadata_pkgbase),
|
||||
str(commit.id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue