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

login
register
mail settings
Submitter Matt Harbison
Date May 12, 2015, 2:51 a.m.
Message ID <835b2b100c94079bf2a4.1431399111@Envy>
Download mbox | patch
Permalink /patch/9019/
State Accepted
Delegated to: Pierre-Yves David
Headers show

Comments

Matt Harbison - May 12, 2015, 2:51 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@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.

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\(',