Fix Python 3 incompatibilities

After running gyptest.py and fixing issues found in Python 3,
I've modified some of the code to support both Python 2 and 3.
I've tested this using Python 3.7.3 and Python 2.7.15

Change-Id: I3f4a0f05821b76edcf5b8827a7931a629b799aa6
Reviewed-on: https://chromium-review.googlesource.com/c/external/gyp/+/1639564
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
7 files changed
tree: c67c12519b16af872f6cb1f938ca9dba40d60593
  1. buildbot/
  2. data/
  3. pylib/
  4. samples/
  5. test/
  6. tools/
  7. .gitignore
  8. .travis.yml
  9. AUTHORS
  10. codereview.settings
  11. DEPS
  12. gyp
  13. gyp.bat
  14. gyp_main.py
  15. gyptest.py
  16. LICENSE
  17. OWNERS
  18. PRESUBMIT.py
  19. README.md
  20. setup.py
README.md

GYP can Generate Your Projects.

Documents are available at gyp.gsrc.io, or you can check out md-pages branch to read those documents offline.