[Collab-qa-commits] r1302 - udd/udd
lucas at alioth.debian.org
lucas at alioth.debian.org
Sat Sep 27 08:53:29 UTC 2008
Author: lucas
Date: 2008-09-27 08:53:28 +0000 (Sat, 27 Sep 2008)
New Revision: 1302
Modified:
udd/udd/sources_gatherer.py
Log:
python sUcks
Modified: udd/udd/sources_gatherer.py
===================================================================
--- udd/udd/sources_gatherer.py 2008-09-27 08:40:45 UTC (rev 1301)
+++ udd/udd/sources_gatherer.py 2008-09-27 08:53:28 UTC (rev 1302)
@@ -11,7 +11,7 @@
from aux import ConfigException
from aux import null_or_quote, quote
from gatherer import gatherer
-import email.utils
+import email.Utils
def get_gatherer(connection, config, source):
return sources_gatherer(connection, config, source)
@@ -87,7 +87,7 @@
cur = self.cursor()
for control in debian_bundle.deb822.Packages.iter_paragraphs(file):
d = self.build_dict(control)
- d['maintainer_name'], d['maintainer_email'] = email.utils.parseaddr(d['Maintainer'])
+ d['maintainer_name'], d['maintainer_email'] = email.Utils.parseaddr(d['Maintainer'])
query = """EXECUTE source_insert
(%(Package)s, %(Version)s, %(Maintainer)s,
%(maintainer_name)s, %(maintainer_email)s, %(Format)s, %(Files)s,
@@ -103,7 +103,7 @@
ud['Package'] = d['Package']
ud['Version'] = d['Version']
if d['Uploaders']:
- for uploader in email.utils.getaddresses([d['Uploaders']]):
+ for uploader in email.Utils.getaddresses([d['Uploaders']]):
ud['Name'] = uploader[0]
ud['Email'] = uploader[1]
query = """EXECUTE uploader_insert (%(Package)s, %(Version)s, %(Name)s,
More information about the Collab-qa-commits
mailing list