[Secure-testing-commits] r43773 - bin
Chris Lamb
lamby at moszumanska.debian.org
Thu Aug 4 17:49:16 UTC 2016
Author: lamby
Date: 2016-08-04 17:49:16 +0000 (Thu, 04 Aug 2016)
New Revision: 43773
Modified:
bin/lts-missing-uploads.py
Log:
lts-missing-uploads: Call session.get from inside parse(..)
Modified: bin/lts-missing-uploads.py
===================================================================
--- bin/lts-missing-uploads.py 2016-08-04 17:49:15 UTC (rev 43772)
+++ bin/lts-missing-uploads.py 2016-08-04 17:49:16 UTC (rev 43773)
@@ -103,7 +103,7 @@
month,
)
- result = self.parse(self.session.get(url).content, self.re_line)
+ result = self.parse(url, self.re_line)
# Prepend URL as the indices have relative URIs
for x in result:
@@ -112,7 +112,7 @@
return result
def get_dla(self, url):
- return self.parse(self.session.get(url).content, self.re_version)
+ return self.parse(url, self.re_version)
def get_sources(self):
self.info("Downloading Sources from {} ...", self.SOURCES)
@@ -124,10 +124,10 @@
return {x['Package']: x['Version'] for x in Sources.iter_paragraphs(val)}
- def parse(self, content, pattern):
+ def parse(self, url, pattern):
result = []
- for x in content.splitlines():
+ for x in self.session.get(url).content.splitlines():
m = pattern.search(x.decode('utf8'))
if m is None:
More information about the Secure-testing-commits
mailing list