##// END OF EJS Templates
check-code: catch "except as"
Matt Mackall -
r13160:07d08c13 default
parent child Browse files
Show More
@@ -129,6 +129,7 b' pypats = ['
129 (r'[\x80-\xff]', "non-ASCII character literal"),
129 (r'[\x80-\xff]', "non-ASCII character literal"),
130 (r'("\')\.format\(', "str.format() not available in Python 2.4"),
130 (r'("\')\.format\(', "str.format() not available in Python 2.4"),
131 (r'^\s*with\s+', "with not available in Python 2.4"),
131 (r'^\s*with\s+', "with not available in Python 2.4"),
132 (r'^\s*except.* as .*:', "except as not available in Python 2.4"),
132 (r'(?<!def)\s+(any|all|format)\(',
133 (r'(?<!def)\s+(any|all|format)\(',
133 "any/all/format not available in Python 2.4"),
134 "any/all/format not available in Python 2.4"),
134 (r'(?<!def)\s+(callable)\(',
135 (r'(?<!def)\s+(callable)\(',
@@ -21,7 +21,7 b' def substate(ctx):'
21 for l in ctx['.hgsubstate'].data().splitlines():
21 for l in ctx['.hgsubstate'].data().splitlines():
22 revision, path = l.split(" ", 1)
22 revision, path = l.split(" ", 1)
23 rev[path] = revision
23 rev[path] = revision
24 except IOError as err:
24 except IOError, err:
25 if err.errno != errno.ENOENT:
25 if err.errno != errno.ENOENT:
26 raise
26 raise
27 return rev
27 return rev
General Comments 0
You need to be logged in to leave comments. Login now