mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
refactor: remove redundand parenthesis when return tuple
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
parent
d793193fdf
commit
7e06823e58
11 changed files with 34 additions and 34 deletions
|
@ -239,12 +239,12 @@ def source_uri(pkgsrc: models.PackageSource) -> Tuple[str, str]:
|
|||
the package base name.
|
||||
|
||||
:param pkgsrc: PackageSource instance
|
||||
:return (text, uri) tuple
|
||||
:return text, uri)tuple
|
||||
"""
|
||||
if "::" in pkgsrc.Source:
|
||||
return pkgsrc.Source.split("::", 1)
|
||||
elif "://" in pkgsrc.Source:
|
||||
return (pkgsrc.Source, pkgsrc.Source)
|
||||
return pkgsrc.Source, pkgsrc.Source
|
||||
path = config.get("options", "source_file_uri")
|
||||
pkgbasename = pkgsrc.Package.PackageBase.Name
|
||||
return (pkgsrc.Source, path % (pkgsrc.Source, pkgbasename))
|
||||
return pkgsrc.Source, path % (pkgsrc.Source, pkgbasename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue