OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 import code | 6 import code |
7 import getpass | 7 import getpass |
8 import logging | 8 import logging |
9 import os | 9 import os |
10 import sys | 10 import sys |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 prompt = ( | 83 prompt = ( |
84 'App Engine interactive console for "%s".\n' | 84 'App Engine interactive console for "%s".\n' |
85 'Available symbols:\n' | 85 'Available symbols:\n' |
86 ' %s\n') % (app_id, ', '.join(sorted(predefined_vars))) | 86 ' %s\n') % (app_id, ', '.join(sorted(predefined_vars))) |
87 code.interact(prompt, None, predefined_vars) | 87 code.interact(prompt, None, predefined_vars) |
88 | 88 |
89 | 89 |
90 if __name__ == '__main__': | 90 if __name__ == '__main__': |
91 sys.exit(main()) | 91 sys.exit(main()) |
OLD | NEW |