Show More
@@ -328,16 +328,12 b' class queue(object):' | |||
|
328 | 328 | return os.path.join(self.path, *p) |
|
329 | 329 | |
|
330 | 330 | def find_series(self, patch): |
|
331 | pre = re.compile("(\s*)([^#]+)") | |
|
332 | index = 0 | |
|
333 | for l in self.full_series: | |
|
334 | m = pre.match(l) | |
|
335 | if m: | |
|
336 | s = m.group(2) | |
|
337 | s = s.rstrip() | |
|
338 | if s == patch: | |
|
339 | return index | |
|
340 | index += 1 | |
|
331 | def matchpatch(l): | |
|
332 | l = l.split('#', 1)[0] | |
|
333 | return l.strip() == patch | |
|
334 | for index, l in enumerate(self.full_series): | |
|
335 | if matchpatch(l): | |
|
336 | return index | |
|
341 | 337 | return None |
|
342 | 338 | |
|
343 | 339 | guard_re = re.compile(r'\s?#([-+][^-+# \t\r\n\f][^# \t\r\n\f]*)') |
General Comments 0
You need to be logged in to leave comments.
Login now