| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """An example of using Remote API to query datastore on live App Engine.""" | 5 """An example of using Remote API to query datastore on live App Engine.""" |
| 6 | 6 |
| 7 import remote_api # During importing, sys.path will be setup appropriately. | 7 # During importing, sys.path will be setup appropriately. |
| 8 import remote_api # pylint: disable=W |
| 8 from model.wf_step import WfStep | 9 from model.wf_step import WfStep |
| 9 | 10 |
| 10 | 11 |
| 11 # Set up the Remote API to use services on the live App Engine. | 12 # Set up the Remote API to use services on the live App Engine. |
| 12 remote_api.EnableRemoteApi(app_id='findit-for-me') | 13 remote_api.EnableRemoteApi(app_id='findit-for-me') |
| 13 | 14 |
| 14 step = WfStep.Get('chromium.memory', 'Linux ASan Tests (sandboxed)', 11413, | 15 step = WfStep.Get('chromium.memory', 'Linux ASan Tests (sandboxed)', 11413, |
| 15 'browser_tests') | 16 'browser_tests') |
| 16 with open('/tmp/step.log', 'w') as f: | 17 with open('/tmp/step.log', 'w') as f: |
| 17 f.write(step.log_data) | 18 f.write(step.log_data) |
| OLD | NEW |