diff options
author | iannucci@chromium.org <iannucci@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-15 01:51:54 +0000 |
---|---|---|
committer | iannucci@chromium.org <iannucci@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-15 01:51:54 +0000 |
commit | 107e33ab3982f3f7fb56a1a2ac2b0eec0b67091b (patch) | |
tree | 85a99c8776a1d91f21fd76737fa56da88e4fc5c0 /build/gyp_helper.py | |
parent | 4d8804ea89be1e0877ca4afe2d577f903a28f574 (diff) | |
download | chromium_src-107e33ab3982f3f7fb56a1a2ac2b0eec0b67091b.zip chromium_src-107e33ab3982f3f7fb56a1a2ac2b0eec0b67091b.tar.gz chromium_src-107e33ab3982f3f7fb56a1a2ac2b0eec0b67091b.tar.bz2 |
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
Diffstat (limited to 'build/gyp_helper.py')
-rw-r--r-- | build/gyp_helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ def apply_gyp_environment_from_file(file_path): """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) |