diff --git a/contrib/check-code.py b/contrib/check-code.py
index 0d6b64fbb5ba24f9dc88bdd7baf0068dfeae4953_Y29udHJpYi9jaGVjay1jb2RlLnB5..6d3079e9b53f17cfc07b12191cea74663189939e_Y29udHJpYi9jaGVjay1jb2RlLnB5 100755
--- a/contrib/check-code.py
+++ b/contrib/check-code.py
@@ -246,7 +246,6 @@
     (r'[\x80-\xff]', "non-ASCII character literal"),
     (r'("\')\.format\(', "str.format() not available in Python 2.4"),
     (r'\.isdisjoint\(', "set.isdisjoint 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", 'no-py24'),
     (r'if\s.*\selse', "if ... else form not available in Python 2.4"),