diff contrib/check-code.py @ 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 4b07578967e6
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)\(',