[PATCH 1 of 2] check-code: drop the python 2.5 warning for os.path.relpath()

Matt Harbison mharbison72 at gmail.com
Tue May 12 02:51:51 UTC 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1431398821 14400
#      Mon May 11 22:47:01 2015 -0400
# Node ID 835b2b100c94079bf2a47adbe3381fa351cbdc9b
# Parent  015adbcd92f3bc15305a3ed4ee59676ff358eabf
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.

diff --git a/contrib/check-code.py b/contrib/check-code.py
--- a/contrib/check-code.py
+++ b/contrib/check-code.py
@@ -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\(',


More information about the Mercurial-devel mailing list