##// END OF EJS Templates
bugzilla: use set instead of dict
Benoit Boissinot -
r8455:a858b54d default
parent child Browse files
Show More
@@ -339,7 +339,7 b' class bugzilla(object):'
339 re.IGNORECASE)
339 re.IGNORECASE)
340 bugzilla._split_re = re.compile(r'\D+')
340 bugzilla._split_re = re.compile(r'\D+')
341 start = 0
341 start = 0
342 ids = {}
342 ids = set()
343 while True:
343 while True:
344 m = bugzilla._bug_re.search(ctx.description(), start)
344 m = bugzilla._bug_re.search(ctx.description(), start)
345 if not m:
345 if not m:
@@ -347,8 +347,7 b' class bugzilla(object):'
347 start = m.end()
347 start = m.end()
348 for id in bugzilla._split_re.split(m.group(1)):
348 for id in bugzilla._split_re.split(m.group(1)):
349 if not id: continue
349 if not id: continue
350 ids[int(id)] = 1
350 ids.add(int(id))
351 ids = ids.keys()
352 if ids:
351 if ids:
353 ids = self.filter_real_bug_ids(ids)
352 ids = self.filter_real_bug_ids(ids)
354 if ids:
353 if ids:
General Comments 0
You need to be logged in to leave comments. Login now