mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-04 13:31:29 +00:00
Please pylint
This commit is contained in:
parent
1bc68bd2cf
commit
b1b1c9a91a
@ -401,10 +401,10 @@ class DebianSourcePackage(SourcePackage):
|
|||||||
|
|
||||||
def _source_urls(self, name):
|
def _source_urls(self, name):
|
||||||
"Generator of sources for name"
|
"Generator of sources for name"
|
||||||
it = super(DebianSourcePackage, self)._source_urls(name)
|
wrapped_iterator = super(DebianSourcePackage, self)._source_urls(name)
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
yield it.next()
|
yield wrapped_iterator.next()
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
break
|
break
|
||||||
if self.snapshot_list:
|
if self.snapshot_list:
|
||||||
@ -471,11 +471,11 @@ class UbuntuSourcePackage(SourcePackage):
|
|||||||
|
|
||||||
def rmadison(url, package):
|
def rmadison(url, package):
|
||||||
"Call rmadison and parse the result"
|
"Call rmadison and parse the result"
|
||||||
p = subprocess.Popen(('rmadison', '-u', url, package),
|
process = subprocess.Popen(('rmadison', '-u', url, package),
|
||||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||||
close_fds=True)
|
close_fds=True)
|
||||||
output = p.communicate()[0]
|
output = process.communicate()[0]
|
||||||
assert p.wait() == 0
|
assert process.wait() == 0
|
||||||
for line in output.strip().splitlines():
|
for line in output.strip().splitlines():
|
||||||
pkg, ver, dist, archs = [x.strip() for x in line.split('|')]
|
pkg, ver, dist, archs = [x.strip() for x in line.split('|')]
|
||||||
comp = 'main'
|
comp = 'main'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user