| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # coding: utf-8 | 2 # coding: utf-8 |
| 3 # | 3 # |
| 4 # Copyright 2007 Google Inc. | 4 # Copyright 2007 Google Inc. |
| 5 # | 5 # |
| 6 # Licensed under the Apache License, Version 2.0 (the "License"); | 6 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 # you may not use this file except in compliance with the License. | 7 # you may not use this file except in compliance with the License. |
| 8 # You may obtain a copy of the License at | 8 # You may obtain a copy of the License at |
| 9 # | 9 # |
| 10 # http://www.apache.org/licenses/LICENSE-2.0 | 10 # http://www.apache.org/licenses/LICENSE-2.0 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 except ImportError: | 62 except ImportError: |
| 63 from md5 import md5 | 63 from md5 import md5 |
| 64 | 64 |
| 65 try: | 65 try: |
| 66 import readline | 66 import readline |
| 67 except ImportError: | 67 except ImportError: |
| 68 pass | 68 pass |
| 69 | 69 |
| 70 try: | 70 try: |
| 71 import keyring | 71 import keyring |
| 72 except ImportError: | 72 except: |
| 73 keyring = None | 73 keyring = None |
| 74 | 74 |
| 75 # The logging verbosity: | 75 # The logging verbosity: |
| 76 # 0: Errors only. | 76 # 0: Errors only. |
| 77 # 1: Status messages. | 77 # 1: Status messages. |
| 78 # 2: Info logs. | 78 # 2: Info logs. |
| 79 # 3: Debug logs. | 79 # 3: Debug logs. |
| 80 verbosity = 1 | 80 verbosity = 1 |
| 81 LOGGER = logging.getLogger('upload') | 81 LOGGER = logging.getLogger('upload') |
| 82 | 82 |
| (...skipping 2622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2705 os.environ['LC_ALL'] = 'C' | 2705 os.environ['LC_ALL'] = 'C' |
| 2706 RealMain(sys.argv) | 2706 RealMain(sys.argv) |
| 2707 except KeyboardInterrupt: | 2707 except KeyboardInterrupt: |
| 2708 print | 2708 print |
| 2709 StatusUpdate("Interrupted.") | 2709 StatusUpdate("Interrupted.") |
| 2710 sys.exit(1) | 2710 sys.exit(1) |
| 2711 | 2711 |
| 2712 | 2712 |
| 2713 if __name__ == "__main__": | 2713 if __name__ == "__main__": |
| 2714 main() | 2714 main() |
| OLD | NEW |