##// END OF EJS Templates
py3: use .startswith() instead of bytes[0]...
Pulkit Goyal -
r37538:fa6cdd66 default
parent child Browse files
Show More
@@ -658,10 +658,11 b' class queue(object):'
658 if not patchguards:
658 if not patchguards:
659 return True, None
659 return True, None
660 guards = self.active()
660 guards = self.active()
661 exactneg = [g for g in patchguards if g[0] == '-' and g[1:] in guards]
661 exactneg = [g for g in patchguards
662 if g.startswith('-') and g[1:] in guards]
662 if exactneg:
663 if exactneg:
663 return False, repr(exactneg[0])
664 return False, repr(exactneg[0])
664 pos = [g for g in patchguards if g[0] == '+']
665 pos = [g for g in patchguards if g.startswith('+')]
665 exactpos = [g for g in pos if g[1:] in guards]
666 exactpos = [g for g in pos if g[1:] in guards]
666 if pos:
667 if pos:
667 if exactpos:
668 if exactpos:
General Comments 0
You need to be logged in to leave comments. Login now