equal
deleted
inserted
replaced
20 |
20 |
21 >>> import re |
21 >>> import re |
22 >>> commands = [] |
22 >>> commands = [] |
23 >>> with open('mercurial/debugcommands.py', 'rb') as fh: |
23 >>> with open('mercurial/debugcommands.py', 'rb') as fh: |
24 ... for line in fh: |
24 ... for line in fh: |
25 ... m = re.match(b"^@command\('([a-z]+)", line) |
25 ... m = re.match(br"^@command\('([a-z]+)", line) |
26 ... if m: |
26 ... if m: |
27 ... commands.append(m.group(1)) |
27 ... commands.append(m.group(1)) |
28 >>> scommands = list(sorted(commands)) |
28 >>> scommands = list(sorted(commands)) |
29 >>> for i, command in enumerate(scommands): |
29 >>> for i, command in enumerate(scommands): |
30 ... if command != commands[i]: |
30 ... if command != commands[i]: |