fix pylint: W0311, W0631

This commit is contained in:
Dimitris Zlatanidis 2015-01-12 15:38:28 +02:00
parent ff9583ef0e
commit 90b29e5e00
2 changed files with 4 additions and 4 deletions

View file

@ -69,9 +69,9 @@ def update_repositories(repositories):
repositories_list = f.read() repositories_list = f.read()
f.close() f.close()
for line in repositories_list.splitlines(): for line in repositories_list.splitlines():
line = line.lstrip() line = line.lstrip()
if line and not line.startswith("#"): if line and not line.startswith("#"):
repositories.append(line.split()[0]) repositories.append(line.split()[0])
return repositories return repositories

View file

@ -249,7 +249,7 @@ class PackageManager(object):
break break
if matching == 0: if matching == 0:
message = "Can't find" message = "Can't find"
pkg_not_found("", pkg, message, "\n") pkg_not_found("", self.binary, message, "\n")
else: else:
print("\n{0}Total found {1} matching packages.{2}".format( print("\n{0}Total found {1} matching packages.{2}".format(
color['GREY'], matching, color['ENDC'])) color['GREY'], matching, color['ENDC']))