| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 #!/usr/bin/env python | |
| 3 | 2 |
| 4 # Copyright (c) 2012 Google Inc. All rights reserved. | 3 # Copyright (c) 2012 Google Inc. All rights reserved. |
| 5 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 6 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 7 | 6 |
| 8 """Pretty-prints the contents of a GYP file.""" | 7 """Pretty-prints the contents of a GYP file.""" |
| 9 | 8 |
| 10 import sys | 9 import sys |
| 11 import re | 10 import re |
| 12 | 11 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 # Split up the double braces. | 146 # Split up the double braces. |
| 148 lines = split_double_braces(data) | 147 lines = split_double_braces(data) |
| 149 | 148 |
| 150 # Indent and print the output. | 149 # Indent and print the output. |
| 151 prettyprint_input(lines) | 150 prettyprint_input(lines) |
| 152 return 0 | 151 return 0 |
| 153 | 152 |
| 154 | 153 |
| 155 if __name__ == '__main__': | 154 if __name__ == '__main__': |
| 156 sys.exit(main()) | 155 sys.exit(main()) |
| OLD | NEW |