Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: recipe_engine/recipe_api.py

Issue 1344583003: Recipe package system. (Closed) Base URL: git@github.com:luci/recipes-py.git@master
Patch Set: Recompiled proto Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « recipe_engine/package_pb2.py ('k') | recipe_engine/run.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013-2015 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 from __future__ import absolute_import
5 import contextlib 6 import contextlib
6 import keyword 7 import keyword
7 import types 8 import types
8 9
9 from functools import wraps 10 from functools import wraps
10 11
11 from .recipe_test_api import DisabledTestData, ModuleTestData 12 from .recipe_test_api import DisabledTestData, ModuleTestData
12 from .config import Single 13 from .config import Single
13 14
14 from .util import ModuleInjectionSite 15 from .util import ModuleInjectionSite
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 517
517 if self._default is not Property.sentinel: 518 if self._default is not Property.sentinel:
518 return self._default 519 return self._default
519 520
520 raise ValueError( 521 raise ValueError(
521 "No default specified and no value provided for '{}'".format( 522 "No default specified and no value provided for '{}'".format(
522 self.name)) 523 self.name))
523 524
524 class UndefinedPropertyException(TypeError): 525 class UndefinedPropertyException(TypeError):
525 pass 526 pass
OLDNEW
« no previous file with comments | « recipe_engine/package_pb2.py ('k') | recipe_engine/run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698