| OLD | NEW |
| 1 # Copyright 2016 The LUCI Authors. All rights reserved. | 1 # Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # that can be found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 from __future__ import absolute_import | 5 from __future__ import absolute_import |
| 6 import bisect | 6 import bisect |
| 7 import collections | 7 import collections |
| 8 import contextlib | 8 import contextlib |
| 9 import copy | 9 import copy |
| 10 import json | 10 import json |
| (...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 def bind(self, name, property_type, full_decl_name): | 1036 def bind(self, name, property_type, full_decl_name): |
| 1037 """ | 1037 """ |
| 1038 Gets the BoundProperty version of this Property. Requires a name. | 1038 Gets the BoundProperty version of this Property. Requires a name. |
| 1039 """ | 1039 """ |
| 1040 return BoundProperty( | 1040 return BoundProperty( |
| 1041 self._default, self.help, self.kind, name, property_type, full_decl_name, | 1041 self._default, self.help, self.kind, name, property_type, full_decl_name, |
| 1042 self.param_name) | 1042 self.param_name) |
| 1043 | 1043 |
| 1044 class UndefinedPropertyException(TypeError): | 1044 class UndefinedPropertyException(TypeError): |
| 1045 pass | 1045 pass |
| 1046 | |
| OLD | NEW |