tests/test-check-code.t
changeset 41547 f16c03c7a3d7
parent 40163 9f0ee4a60d65
child 41853 d7dc4ac1ff84
equal deleted inserted replaced
41546:20e62312e016 41547:f16c03c7a3d7
    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]: