[Collab-qa-commits] r1272 - udd/udd
lucas at alioth.debian.org
lucas at alioth.debian.org
Mon Sep 15 11:57:00 UTC 2008
Author: lucas
Date: 2008-09-15 11:56:59 +0000 (Mon, 15 Sep 2008)
New Revision: 1272
Modified:
udd/udd/ubuntu_bugs_gatherer.py
Log:
remove calls to task_done() to be compatible with python2.4
Modified: udd/udd/ubuntu_bugs_gatherer.py
===================================================================
--- udd/udd/ubuntu_bugs_gatherer.py 2008-09-15 11:39:40 UTC (rev 1271)
+++ udd/udd/ubuntu_bugs_gatherer.py 2008-09-15 11:56:59 UTC (rev 1272)
@@ -57,7 +57,6 @@
print "HTTPQ: ", httpq.qsize(), " DBQ: ", dbq.qsize()
d = dbq.get(True, 5) # 10 secs timeout
self.dbimport(c, d)
- dbq.task_done()
except Empty:
if httpq.qsize() == 0:
ok = False
@@ -109,24 +108,20 @@
data = r.read()
if data != '':
dq.put(data)
- hq.task_done()
else:
print "[", currentThread().getName(), "] Bug ", b, ": Empty data."
ok = False
hq.put(b)
- hq.task_done()
else:
print "[", currentThread().getName(), "] Bug ", b, ": Wrong status: ", r.status, " ", r.reason
ok = False
hq.put(b)
- hq.task_done()
except httplib.BadStatusLine, line:
print "[", currentThread().getName(), "] Bug ", b, ": BadStatusLine: ", line
print str(r.getheaders())
print r.read()
ok = False
hq.put(b)
- hq.task_done()
parre = re.compile('^\s*(.*) \(([^(]*)\)$')
def splitpar(self, text):
More information about the Collab-qa-commits
mailing list