| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Replaces "Chrome Remote Desktop" with "Chromoting" in GRD files""" | 6 """Replaces "Chrome Remote Desktop" with "Chromoting" in GRD files""" |
| 7 | 7 |
| 8 import sys | 8 import sys |
| 9 from optparse import OptionParser | 9 from optparse import OptionParser |
| 10 import xml.dom.minidom as minidom | 10 import xml.dom.minidom as minidom |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 parser = OptionParser(usage=usage) | 43 parser = OptionParser(usage=usage) |
| 44 options, args = parser.parse_args() | 44 options, args = parser.parse_args() |
| 45 if len(args) != 2: | 45 if len(args) != 2: |
| 46 parser.error('two positional arguments expected') | 46 parser.error('two positional arguments expected') |
| 47 | 47 |
| 48 return remove_official_branding(args[0], args[1]) | 48 return remove_official_branding(args[0], args[1]) |
| 49 | 49 |
| 50 if __name__ == '__main__': | 50 if __name__ == '__main__': |
| 51 sys.exit(main()) | 51 sys.exit(main()) |
| 52 | 52 |
| OLD | NEW |