mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
fix pylint: W0311, W0631
This commit is contained in:
parent
ff9583ef0e
commit
90b29e5e00
2 changed files with 4 additions and 4 deletions
|
@ -69,9 +69,9 @@ def update_repositories(repositories):
|
|||
repositories_list = f.read()
|
||||
f.close()
|
||||
for line in repositories_list.splitlines():
|
||||
line = line.lstrip()
|
||||
if line and not line.startswith("#"):
|
||||
repositories.append(line.split()[0])
|
||||
line = line.lstrip()
|
||||
if line and not line.startswith("#"):
|
||||
repositories.append(line.split()[0])
|
||||
return repositories
|
||||
|
||||
|
||||
|
|
|
@ -249,7 +249,7 @@ class PackageManager(object):
|
|||
break
|
||||
if matching == 0:
|
||||
message = "Can't find"
|
||||
pkg_not_found("", pkg, message, "\n")
|
||||
pkg_not_found("", self.binary, message, "\n")
|
||||
else:
|
||||
print("\n{0}Total found {1} matching packages.{2}".format(
|
||||
color['GREY'], matching, color['ENDC']))
|
||||
|
|
Loading…
Add table
Reference in a new issue