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()
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

View file

@ -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']))