| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2011 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 """A helper script for setting up forwarding headers.""" | 6 """A helper script for setting up forwarding headers.""" |
| 7 | 7 |
| 8 import errno | 8 import errno |
| 9 import os | 9 import os |
| 10 import sys | 10 import sys |
| 11 | 11 |
| 12 | 12 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 'outputs': Outputs, | 129 'outputs': Outputs, |
| 130 'setup_headers': SetupHeaders, | 130 'setup_headers': SetupHeaders, |
| 131 } | 131 } |
| 132 command = argv[1] | 132 command = argv[1] |
| 133 args = argv[2:] | 133 args = argv[2:] |
| 134 return commands[command](args) | 134 return commands[command](args) |
| 135 | 135 |
| 136 | 136 |
| 137 if __name__ == '__main__': | 137 if __name__ == '__main__': |
| 138 sys.exit(Main(sys.argv)) | 138 sys.exit(Main(sys.argv)) |
| OLD | NEW |