fix 77effb29 regression

The following commit broke ofp_attrs():

commit 77effb29a69eeb6d320dd9a7554924b2578c3c95
Author: Isaku Yamahata <yamahata@valinux.co.jp>
Date:   Mon May 27 18:15:27 2013 +0900

    ofproto/ofproto_parser: pylint

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2013-06-01 18:43:51 +09:00
parent 93b457bf63
commit d7d4d8c1b5

View File

@ -162,8 +162,8 @@ def msg_pack_into(fmt, buf, offset, *args):
def ofp_attrs(msg_):
base = getattr(msg, '_base_attributes', [])
for k, v in inspect.getmembers(msg):
base = getattr(msg_, '_base_attributes', [])
for k, v in inspect.getmembers(msg_):
if k.startswith('_'):
continue
if callable(v):