diff options
author | Yoshihiro Kaneko <ykaneko0929@gmail.com> | 2014-05-14 13:20:08 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-05-14 13:20:08 +0900 |
commit | 853bdeb1c3329b5caa0f59fa90d0f6ee2f0472cb (patch) | |
tree | 7aad22bfbf8c1455f3f3bad726eb6705e2569524 | |
parent | 3f46c5a2ff09b956b3cb2e9fdc823485d476317d (diff) |
lib/of_config: fix pep8
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/of_config/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ryu/lib/of_config/base.py b/ryu/lib/of_config/base.py index 6495924b..c657b109 100644 --- a/ryu/lib/of_config/base.py +++ b/ryu/lib/of_config/base.py @@ -60,7 +60,7 @@ class _Base(stringify.StringifyMixin): k = _pythonify(e.name) try: v = kwargs.pop(k) - assert not e.name in kwargs + assert e.name not in kwargs except KeyError: k = e.name try: @@ -111,7 +111,7 @@ class _Base(stringify.StringifyMixin): @classmethod def from_et(cls, et): def convert(v): - if not e.cls is None: + if e.cls is not None: return e.cls.from_et(v) return v @@ -130,7 +130,7 @@ class _Base(stringify.StringifyMixin): assert e.is_list v = map(convert, v) k = _pythonify(e.name) - assert not k in kwargs + assert k not in kwargs kwargs[k] = v return cls(**kwargs) |