Skip to content

Commit

Permalink
Removing python 2.5 dependency.
Browse files Browse the repository at this point in the history
git-svn-id: http://gyp.googlecode.com/svn/trunk@138 78cadc50-ecff-11dd-a971-7dbc132099af
  • Loading branch information
[email protected] committed Feb 9, 2009
1 parent 5ca0052 commit 8ae5f27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pylib/gyp/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8ae5f27

Please sign in to comment.