| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The LUCI Authors. All rights reserved. | 2 # Copyright 2013 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 """Archives a set of files or directories to an Isolate Server.""" | 6 """Archives a set of files or directories to an Isolate Server.""" |
| 7 | 7 |
| 8 __version__ = '0.4.8' | 8 __version__ = '0.4.8' |
| 9 | 9 |
| 10 import base64 | 10 import base64 |
| 11 import functools | 11 import functools |
| 12 import logging | 12 import logging |
| 13 import optparse | 13 import optparse |
| 14 import os | 14 import os |
| (...skipping 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2265 def main(args): | 2265 def main(args): |
| 2266 dispatcher = subcommand.CommandDispatcher(__name__) | 2266 dispatcher = subcommand.CommandDispatcher(__name__) |
| 2267 return dispatcher.execute(OptionParserIsolateServer(), args) | 2267 return dispatcher.execute(OptionParserIsolateServer(), args) |
| 2268 | 2268 |
| 2269 | 2269 |
| 2270 if __name__ == '__main__': | 2270 if __name__ == '__main__': |
| 2271 fix_encoding.fix_encoding() | 2271 fix_encoding.fix_encoding() |
| 2272 tools.disable_buffering() | 2272 tools.disable_buffering() |
| 2273 colorama.init() | 2273 colorama.init() |
| 2274 sys.exit(main(sys.argv[1:])) | 2274 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |