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

Side by Side Diff: pylib/gyp/MSVSToolFile.py

Issue 10449026: Fixing leftover from prior reveiew, plus more lint. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « pylib/gyp/MSVSProject.py ('k') | pylib/gyp/MSVSUserFile.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 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 """Visual Studio project reader/writer.""" 5 """Visual Studio project reader/writer."""
6 6
7 import common 7 import gyp.common
8 import gyp.easy_xml as easy_xml 8 import gyp.easy_xml as easy_xml
9 9
10 10
11 class Writer(object): 11 class Writer(object):
12 """Visual Studio XML tool file writer.""" 12 """Visual Studio XML tool file writer."""
13 13
14 def __init__(self, tool_file_path, name): 14 def __init__(self, tool_file_path, name):
15 """Initializes the tool file. 15 """Initializes the tool file.
16 16
17 Args: 17 Args:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 def WriteIfChanged(self): 49 def WriteIfChanged(self):
50 """Writes the tool file.""" 50 """Writes the tool file."""
51 content = ['VisualStudioToolFile', 51 content = ['VisualStudioToolFile',
52 {'Version': '8.00', 52 {'Version': '8.00',
53 'Name': self.name 53 'Name': self.name
54 }, 54 },
55 self.rules_section 55 self.rules_section
56 ] 56 ]
57 easy_xml.WriteXmlIfChanged(content, self.tool_file_path, 57 easy_xml.WriteXmlIfChanged(content, self.tool_file_path,
58 encoding="Windows-1252") 58 encoding="Windows-1252")
OLDNEW
« no previous file with comments | « pylib/gyp/MSVSProject.py ('k') | pylib/gyp/MSVSUserFile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698