Mercurial > hg
changeset 13161:11eb53464e68
check-code: catch os.path.relpath
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 16 Dec 2010 14:50:37 -0600 |
parents | 07d08c130892 |
children | 115a9760c382 |
files | contrib/check-code.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/check-code.py Thu Dec 16 14:50:36 2010 -0600 +++ b/contrib/check-code.py Thu Dec 16 14:50:37 2010 -0600 @@ -130,6 +130,7 @@ (r'("\')\.format\(', "str.format() not available in Python 2.4"), (r'^\s*with\s+', "with not available in Python 2.4"), (r'^\s*except.* as .*:', "except as not available in Python 2.4"), + (r'^\s*os\.path\.relpath', "relpath not available in Python 2.4"), (r'(?<!def)\s+(any|all|format)\(', "any/all/format not available in Python 2.4"), (r'(?<!def)\s+(callable)\(',