Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
|
iannucci
2015/05/27 02:03:27
drop the recipe_ bit from the name on all these
luqui
2015/05/28 21:47:38
I chose not to do this for recipe_api and recipe_t
| |
| 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 contextlib | 5 import contextlib |
| 6 import types | 6 import types |
| 7 | 7 |
| 8 from functools import wraps | 8 from functools import wraps |
| 9 | 9 |
| 10 from .recipe_test_api import DisabledTestData, ModuleTestData | 10 from .recipe_test_api import DisabledTestData, ModuleTestData |
| 11 | 11 |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 440 # module.resource('dir').join('subdir', 'file.py') | 440 # module.resource('dir').join('subdir', 'file.py') |
| 441 return self._module.MODULE_DIRECTORY.join('resources', *path) | 441 return self._module.MODULE_DIRECTORY.join('resources', *path) |
| 442 | 442 |
| 443 @property | 443 @property |
| 444 def name(self): | 444 def name(self): |
| 445 return self._module.NAME | 445 return self._module.NAME |
| 446 | 446 |
| 447 | 447 |
| 448 class RecipeApi(RecipeApiPlain): | 448 class RecipeApi(RecipeApiPlain): |
| 449 __metaclass__ = RecipeApiMeta | 449 __metaclass__ = RecipeApiMeta |
| OLD | NEW |