| OLD | NEW |
| 1 # Copyright 2014 The LUCI Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Gitiles functions for GAE environment.""" | 5 """Gitiles functions for GAE environment.""" |
| 6 | 6 |
| 7 import base64 | 7 import base64 |
| 8 import collections | 8 import collections |
| 9 import datetime | 9 import datetime |
| 10 import posixpath | 10 import posixpath |
| 11 import re | 11 import re |
| 12 import urllib | 12 import urllib |
| 13 import urlparse | 13 import urlparse |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 _validate_treeish(treeish) | 436 _validate_treeish(treeish) |
| 437 if path_required: | 437 if path_required: |
| 438 assert path is not None | 438 assert path is not None |
| 439 if path is not None: | 439 if path is not None: |
| 440 assert_non_empty_string(path) | 440 assert_non_empty_string(path) |
| 441 assert path.startswith(path), path | 441 assert path.startswith(path), path |
| 442 | 442 |
| 443 | 443 |
| 444 def _quote_all(*args): | 444 def _quote_all(*args): |
| 445 return tuple(map(urllib.quote, args)) | 445 return tuple(map(urllib.quote, args)) |
| OLD | NEW |