Signed-off-by: Yoshihiro Kaneko <ykaneko0...@gmail.com> --- ryu/lib/of_config/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ryu/lib/of_config/base.py b/ryu/lib/of_config/base.py index 6495924..ca363bf 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 not is 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) -- 1.7.9.5 ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel