| Index: pylib/gyp/input.py
|
| diff --git a/pylib/gyp/input.py b/pylib/gyp/input.py
|
| index f46ca795d4c09ed7d2e2b3a3d758bd5065d3d35d..bc68c3765dba98fc6f96dfba7e9ab1e06aa3d677 100644
|
| --- a/pylib/gyp/input.py
|
| +++ b/pylib/gyp/input.py
|
| @@ -57,7 +57,7 @@ def IsPathSection(section):
|
| # If section ends in one of the '=+?!' characters, it's applied to a section
|
| # without the trailing characters. '/' is notably absent from this list,
|
| # because there's no way for a regular expression to be treated as a path.
|
| - while section[-1:] in '=+?!':
|
| + while section and section[-1:] in '=+?!':
|
| section = section[:-1]
|
|
|
| if section in path_sections:
|
|
|