# HG changeset patch # User Matt Mackall # Date 1292532637 21600 # Node ID 11eb53464e68a6886f9d847fadd3e4e41c8bbe4c # Parent 07d08c130892aa0ecac9894d6dbb1027d79b64b3 check-code: catch os.path.relpath diff -r 07d08c130892 -r 11eb53464e68 contrib/check-code.py --- 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'(?