##// END OF EJS Templates
check-code: indent 4 spaces in py files
Mads Kiilerich -
r17299:e51d4aed stable
parent child Browse files
Show More
@@ -206,6 +206,7 b' pypats = ['
206 206 (r'\.debug\(\_', "don't mark debug messages for translation"),
207 207 (r'\.strip\(\)\.split\(\)', "no need to strip before splitting"),
208 208 (r'^\s*except\s*:', "warning: naked except clause", r'#.*re-raises'),
209 (r':\n( )*( ){1,3}[^ ]', "must indent 4 spaces"),
209 210 ],
210 211 # warnings
211 212 [
@@ -1630,9 +1630,9 b' def diff(repo, node1=None, node2=None, m'
1630 1630 if opts.git or opts.upgrade:
1631 1631 copy = copies.pathcopies(ctx1, ctx2)
1632 1632
1633 difffn = (lambda opts, losedata:
1634 trydiff(repo, revs, ctx1, ctx2, modified, added, removed,
1635 copy, getfilectx, opts, losedata, prefix))
1633 def difffn(opts, losedata):
1634 return trydiff(repo, revs, ctx1, ctx2, modified, added, removed,
1635 copy, getfilectx, opts, losedata, prefix)
1636 1636 if opts.upgrade and not opts.git:
1637 1637 try:
1638 1638 def losedata(fn):
General Comments 0
You need to be logged in to leave comments. Login now