]> granicus.if.org Git - libevent/commitdiff
event_rpcgen.py: fix attribute-defined-outside-init
authorAzat Khuzhin <azat@libevent.org>
Sat, 28 Mar 2020 12:58:57 +0000 (15:58 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sat, 28 Mar 2020 12:58:57 +0000 (15:58 +0300)
event_rpcgen.py

index 6b8478f09452437a9bec191dd0652a493c5c7af7..1d8bfe32707e0f33b7e0526a53b0c2198d00857d 100755 (executable)
@@ -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)