| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 """ | 3 """ |
| 4 Copyright 2014 Google Inc. | 4 Copyright 2014 Google Inc. |
| 5 | 5 |
| 6 Use of this source code is governed by a BSD-style license that can be | 6 Use of this source code is governed by a BSD-style license that can be |
| 7 found in the LICENSE file. | 7 found in the LICENSE file. |
| 8 | 8 |
| 9 ImagePairSet class; see its docstring below. | 9 ImagePairSet class; see its docstring below. |
| 10 """ | 10 """ |
| 11 | 11 |
| 12 # System-level imports | 12 # System-level imports |
| 13 import posixpath | 13 import posixpath |
| 14 | 14 |
| 15 # Must fix up PYTHONPATH before importing from within Skia | 15 # Must fix up PYTHONPATH before importing from within Skia |
| 16 import fix_pythonpath # pylint: disable=W0611 | 16 import rs_fixpypath # pylint: disable=W0611 |
| 17 | 17 |
| 18 # Imports from within Skia | 18 # Imports from within Skia |
| 19 import column | 19 import column |
| 20 import imagediffdb | 20 import imagediffdb |
| 21 from py.utils import gs_utils | 21 from py.utils import gs_utils |
| 22 | 22 |
| 23 # Keys used within dictionary representation of ImagePairSet. | 23 # Keys used within dictionary representation of ImagePairSet. |
| 24 # NOTE: Keep these in sync with static/constants.js | 24 # NOTE: Keep these in sync with static/constants.js |
| 25 KEY__ROOT__EXTRACOLUMNHEADERS = 'extraColumnHeaders' | 25 KEY__ROOT__EXTRACOLUMNHEADERS = 'extraColumnHeaders' |
| 26 KEY__ROOT__EXTRACOLUMNORDER = 'extraColumnOrder' | 26 KEY__ROOT__EXTRACOLUMNORDER = 'extraColumnOrder' |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 anyfile_utils.py for copying files between HTTP/GS/local filesystem') | 216 anyfile_utils.py for copying files between HTTP/GS/local filesystem') |
| 217 | 217 |
| 218 Args: | 218 Args: |
| 219 gs_url: "gs://bucket/path" format URL | 219 gs_url: "gs://bucket/path" format URL |
| 220 """ | 220 """ |
| 221 bucket, path = gs_utils.GSUtils.split_gs_url(gs_url) | 221 bucket, path = gs_utils.GSUtils.split_gs_url(gs_url) |
| 222 http_url = 'http://storage.cloud.google.com/' + bucket | 222 http_url = 'http://storage.cloud.google.com/' + bucket |
| 223 if path: | 223 if path: |
| 224 http_url += '/' + path | 224 http_url += '/' + path |
| 225 return http_url | 225 return http_url |
| OLD | NEW |