From 8ae5f27d3df00172df14b2fdb906c49d0fc39b07 Mon Sep 17 00:00:00 2001 From: "bradnelson@google.com" Date: Mon, 9 Feb 2009 19:15:50 +0000 Subject: [PATCH] Removing python 2.5 dependency. git-svn-id: http://gyp.googlecode.com/svn/trunk@138 78cadc50-ecff-11dd-a971-7dbc132099af --- pylib/gyp/input.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylib/gyp/input.py b/pylib/gyp/input.py index a1114fe2..bbccd19c 100644 --- a/pylib/gyp/input.py +++ b/pylib/gyp/input.py @@ -672,7 +672,8 @@ def MakePathRelative(to_file, fro_file, item): # < Used for our own variables (see ExpandVariables) # > Used for our own variables (see ExpandVariables) # ! Used for command evaluation (see ExpandVariables) - if to_file == fro_file or item.startswith(('/', '$', '-', '<', '>', '!')): + # Not using startswith here, because its not present before py2.5. + if to_file == fro_file or item[0] in ('/', '$', '-', '<', '>', '!'): return item else: return os.path.normpath(os.path.join(