| 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 """Understands .isolated files and can do local operations on them.""" | 5 """Understands .isolated files and can do local operations on them.""" |
| 6 | 6 |
| 7 import hashlib | 7 import hashlib |
| 8 import json | 8 import json |
| 9 import logging | 9 import logging |
| 10 import os | 10 import os |
| 11 import re | 11 import re |
| 12 import stat | 12 import stat |
| 13 import sys | 13 import sys |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 data['files'] = dict( | 561 data['files'] = dict( |
| 562 (k.replace(wrong_path_sep, os.path.sep), v) | 562 (k.replace(wrong_path_sep, os.path.sep), v) |
| 563 for k, v in data['files'].iteritems()) | 563 for k, v in data['files'].iteritems()) |
| 564 for v in data['files'].itervalues(): | 564 for v in data['files'].itervalues(): |
| 565 if 'l' in v: | 565 if 'l' in v: |
| 566 v['l'] = v['l'].replace(wrong_path_sep, os.path.sep) | 566 v['l'] = v['l'].replace(wrong_path_sep, os.path.sep) |
| 567 if 'relative_cwd' in data: | 567 if 'relative_cwd' in data: |
| 568 data['relative_cwd'] = data['relative_cwd'].replace( | 568 data['relative_cwd'] = data['relative_cwd'].replace( |
| 569 wrong_path_sep, os.path.sep) | 569 wrong_path_sep, os.path.sep) |
| 570 return data | 570 return data |
| OLD | NEW |