OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python2.7 |
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 # Copyright (C) 2008 Evan Martin <martine@danga.com> | 6 # Copyright (C) 2008 Evan Martin <martine@danga.com> |
7 | 7 |
8 """A git-command for integrating reviews on Rietveld.""" | 8 """A git-command for integrating reviews on Rietveld.""" |
9 | 9 |
10 from distutils.version import LooseVersion | 10 from distutils.version import LooseVersion |
11 from multiprocessing.pool import ThreadPool | 11 from multiprocessing.pool import ThreadPool |
(...skipping 3658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3670 if __name__ == '__main__': | 3670 if __name__ == '__main__': |
3671 # These affect sys.stdout so do it outside of main() to simplify mocks in | 3671 # These affect sys.stdout so do it outside of main() to simplify mocks in |
3672 # unit testing. | 3672 # unit testing. |
3673 fix_encoding.fix_encoding() | 3673 fix_encoding.fix_encoding() |
3674 colorama.init() | 3674 colorama.init() |
3675 try: | 3675 try: |
3676 sys.exit(main(sys.argv[1:])) | 3676 sys.exit(main(sys.argv[1:])) |
3677 except KeyboardInterrupt: | 3677 except KeyboardInterrupt: |
3678 sys.stderr.write('interrupted\n') | 3678 sys.stderr.write('interrupted\n') |
3679 sys.exit(1) | 3679 sys.exit(1) |
OLD | NEW |