| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013-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 import abc | 5 import abc |
| 6 import re | 6 import re |
| 7 | 7 |
| 8 from collections import namedtuple | 8 from collections import namedtuple |
| 9 | 9 |
| 10 from infra.libs import infra_types | 10 from infra.libs import infra_types |
| 11 | 11 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 return child.pieces[:len(self.pieces)] == self.pieces | 155 return child.pieces[:len(self.pieces)] == self.pieces |
| 156 | 156 |
| 157 def default_tostring_fn(self): | 157 def default_tostring_fn(self): |
| 158 suffix = '' | 158 suffix = '' |
| 159 if self.platform_ext: | 159 if self.platform_ext: |
| 160 suffix = ', platform_ext=%r' % (self.platform_ext,) | 160 suffix = ', platform_ext=%r' % (self.platform_ext,) |
| 161 pieces = '' | 161 pieces = '' |
| 162 if self.pieces: | 162 if self.pieces: |
| 163 pieces = ', ' + (', '.join(map(repr, self.pieces))) | 163 pieces = ', ' + (', '.join(map(repr, self.pieces))) |
| 164 return 'Path(\'%s\'%s%s)' % (self.base, pieces, suffix) | 164 return 'Path(\'%s\'%s%s)' % (self.base, pieces, suffix) |
| OLD | NEW |