From: Azat Khuzhin Date: Sat, 28 Mar 2020 12:58:57 +0000 (+0300) Subject: event_rpcgen.py: fix attribute-defined-outside-init X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cdf75ca26f0156a55b128e8b63b3e7955f00f7e;p=libevent event_rpcgen.py: fix attribute-defined-outside-init --- diff --git a/event_rpcgen.py b/event_rpcgen.py index 6b8478f0..1d8bfe32 100755 --- a/event_rpcgen.py +++ b/event_rpcgen.py @@ -1186,6 +1186,8 @@ class EntryVarBytes(Entry): class EntryArray(Entry): + _index = None + def __init__(self, entry): # Init base class super(EntryArray, self).__init__(entry._type, entry._name, entry._tag)