| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 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 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 'outputs': Outputs, | 119 'outputs': Outputs, |
| 120 'setup_headers': SetupHeaders, | 120 'setup_headers': SetupHeaders, |
| 121 } | 121 } |
| 122 command = argv[1] | 122 command = argv[1] |
| 123 args = argv[2:] | 123 args = argv[2:] |
| 124 return commands[command](args) | 124 return commands[command](args) |
| 125 | 125 |
| 126 | 126 |
| 127 if __name__ == '__main__': | 127 if __name__ == '__main__': |
| 128 sys.exit(Main(sys.argv)) | 128 sys.exit(Main(sys.argv)) |
| OLD | NEW |