Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: test/custom-generator/mygenerator.py

Issue 1454433002: Python 3 compatibility Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase with master (4ec6c4e3a94bd04a6da2858163d40b2429b8aad1) Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 Google Inc. All rights reserved. 1 # Copyright (c) 2012 Google Inc. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Custom gyp generator that doesn't do much.""" 5 """Custom gyp generator that doesn't do much."""
6 6
7 import gyp.common 7 import gyp.common
8 8
9 generator_default_variables = {} 9 generator_default_variables = {}
10 10
11 def GenerateOutput(target_list, target_dicts, data, params): 11 def GenerateOutput(target_list, target_dicts, data, params):
12 f = open("MyBuildFile", "wb") 12 f = open("MyBuildFile", "w")
13 f.write("Testing...\n") 13 f.write("Testing...\n")
14 f.close() 14 f.close()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698