Mercurial > public > mercurial-scm > hg
diff contrib/check-code.py @ 25010:ded7302e1c83
check-code: drop the python 2.5 warning for os.path.relpath()
There's plenty of other cleanup to do in here, but this specific one is used in
the next patch.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 11 May 2015 22:47:01 -0400 |
parents | 1f9127c9239b |
children | 62c2786b4327 |
line wrap: on
line diff
--- a/contrib/check-code.py Fri May 08 23:44:15 2015 -0700 +++ b/contrib/check-code.py Mon May 11 22:47:01 2015 -0400 @@ -281,7 +281,6 @@ (r'opener\([^)]*\).read\(', "use opener.read() instead"), (r'BaseException', 'not in Python 2.4, use Exception'), - (r'os\.path\.relpath', 'os.path.relpath is not in Python 2.5'), (r'opener\([^)]*\).write\(', "use opener.write() instead"), (r'[\s\(](open|file)\([^)]*\)\.read\(',