contrib/check-code.py
changeset 10905 13a1b2fb7ef2
parent 10895 217557b26bc7
child 11210 0c0088881562
equal deleted inserted replaced
10903:cd21bf199d17 10905:13a1b2fb7ef2
     5 # Copyright 2010 Matt Mackall <mpm@selenic.com>
     5 # Copyright 2010 Matt Mackall <mpm@selenic.com>
     6 #
     6 #
     7 # This software may be used and distributed according to the terms of the
     7 # This software may be used and distributed according to the terms of the
     8 # GNU General Public License version 2 or any later version.
     8 # GNU General Public License version 2 or any later version.
     9 
     9 
    10 import sys, re, glob
    10 import re, glob
    11 import optparse
    11 import optparse
    12 
    12 
    13 def repquote(m):
    13 def repquote(m):
    14     t = re.sub(r"\w", "x", m.group('text'))
    14     t = re.sub(r"\w", "x", m.group('text'))
    15     t = re.sub(r"[^\sx]", "o", t)
    15     t = re.sub(r"[^\sx]", "o", t)