Use universal newlines in gyp_helper.
This avoids a stack trace for developers who have dos line endings in their
chromium.gyp_env files.
BUG=
Review URL: https://chromiumcodereview.appspot.com/11293286
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167817 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/build/gyp_helper.py b/build/gyp_helper.py
index 69a341d..63debcd 100644
--- a/build/gyp_helper.py
+++ b/build/gyp_helper.py
@@ -15,7 +15,7 @@
"""Reads in a *.gyp_env file and applies the valid keys to os.environ."""
if not os.path.exists(file_path):
return
- with open(file_path) as f:
+ with open(file_path, 'rU') as f:
file_contents = f.read()
try:
file_data = eval(file_contents, {'__builtins__': None}, None)