diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2018-06-01 13:03:01 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-04 15:15:00 +0100 |
commit | 93bbc30fb9063d830619cc3d23b1d3755fd1dafa (patch) | |
tree | 6f52a69a3883c5eb4bd24b8f6cf4da960f6ed545 /meta/lib | |
parent | a233b59fb0b86b3225425b2a45bd4b2ce6d27c22 (diff) | |
download | poky-93bbc30fb9063d830619cc3d23b1d3755fd1dafa.tar.gz |
oeqa/core/decorator/__init__.py: use 'cls' instead of 'obj'
Use 'cls' instead of 'obj' to better reflect that registerDecorator
actually serves as a class decorator.
(From OE-Core rev: e06e4c859e8be5225d80806a2ebe175f0b152fe1)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/core/decorator/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/core/decorator/__init__.py b/meta/lib/oeqa/core/decorator/__init__.py index 6ca0acf353..14d7bfcd35 100644 --- a/meta/lib/oeqa/core/decorator/__init__.py +++ b/meta/lib/oeqa/core/decorator/__init__.py | |||
@@ -6,9 +6,9 @@ from abc import abstractmethod, ABCMeta | |||
6 | 6 | ||
7 | decoratorClasses = set() | 7 | decoratorClasses = set() |
8 | 8 | ||
9 | def registerDecorator(obj): | 9 | def registerDecorator(cls): |
10 | decoratorClasses.add(obj) | 10 | decoratorClasses.add(cls) |
11 | return obj | 11 | return cls |
12 | 12 | ||
13 | class OETestDecorator(object, metaclass=ABCMeta): | 13 | class OETestDecorator(object, metaclass=ABCMeta): |
14 | case = None # Reference of OETestCase decorated | 14 | case = None # Reference of OETestCase decorated |