Mercurial > hg-stable
comparison hgext/mq.py @ 13031:3da456d0c885
code style: prefer 'is' and 'is not' tests with singletons
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Mon, 22 Nov 2010 18:15:58 +0100 |
parents | cffa35529706 |
children | 026053f691a4 |
comparison
equal
deleted
inserted
replaced
13030:8ea51e9e7031 | 13031:3da456d0c885 |
---|---|
1521 datastart = i + 1 | 1521 datastart = i + 1 |
1522 elif line.startswith('Dirstate:'): | 1522 elif line.startswith('Dirstate:'): |
1523 l = line.rstrip() | 1523 l = line.rstrip() |
1524 l = l[10:].split(' ') | 1524 l = l[10:].split(' ') |
1525 qpp = [bin(x) for x in l] | 1525 qpp = [bin(x) for x in l] |
1526 elif datastart != None: | 1526 elif datastart is not None: |
1527 l = line.rstrip() | 1527 l = line.rstrip() |
1528 n, name = l.split(':', 1) | 1528 n, name = l.split(':', 1) |
1529 if n: | 1529 if n: |
1530 applied.append(statusentry(bin(n), name)) | 1530 applied.append(statusentry(bin(n), name)) |
1531 else: | 1531 else: |