OLD | NEW |
1 #!/usr/bin/python2.4 | 1 #!/usr/bin/python2.4 |
2 | 2 |
| 3 # Copyright (c) 2009 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
3 """Visual Studio project reader/writer.""" | 7 """Visual Studio project reader/writer.""" |
4 | 8 |
5 import common | 9 import common |
6 import xml.dom | 10 import xml.dom |
7 import xml.dom.minidom | 11 import xml.dom.minidom |
8 | 12 |
9 | 13 |
10 #------------------------------------------------------------------------------ | 14 #------------------------------------------------------------------------------ |
11 | 15 |
12 | 16 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 ';'.join(additional_dependencies)) | 70 ';'.join(additional_dependencies)) |
67 self.n_rules.appendChild(n_rule) | 71 self.n_rules.appendChild(n_rule) |
68 | 72 |
69 def Write(self, writer=common.WriteOnDiff): | 73 def Write(self, writer=common.WriteOnDiff): |
70 """Writes the tool file.""" | 74 """Writes the tool file.""" |
71 f = writer(self.tool_file_path) | 75 f = writer(self.tool_file_path) |
72 self.doc.writexml(f, encoding='Windows-1252', addindent=' ', newl='\r\n') | 76 self.doc.writexml(f, encoding='Windows-1252', addindent=' ', newl='\r\n') |
73 f.close() | 77 f.close() |
74 | 78 |
75 #------------------------------------------------------------------------------ | 79 #------------------------------------------------------------------------------ |
OLD | NEW |