aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Cowie <brad@wand.net.nz>2019-08-14 09:45:13 +1200
committerBrad Cowie <brad@wand.net.nz>2019-08-14 14:55:51 +1200
commite16b57a362e3d0a5cd4dfbca6557672d53a3575e (patch)
treea0b5ee8c332a73f6b8faf473e20324491c559414
parent07915ddd876af9965d0039edd3b8fadff45ffcf7 (diff)
downloadbeka-e16b57a362e3d0a5cd4dfbca6557672d53a3575e.tar.gz
beka-e16b57a362e3d0a5cd4dfbca6557672d53a3575e.tar.bz2
beka-e16b57a362e3d0a5cd4dfbca6557672d53a3575e.zip
Fix pytype attribute-error.
-rw-r--r--beka/peering.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/beka/peering.py b/beka/peering.py
index 1f323c3..b475f54 100644
--- a/beka/peering.py
+++ b/beka/peering.py
@@ -11,7 +11,12 @@ from .error import SocketClosedError, IdleError
import time
class Peering(object):
+
def __init__(self, state_machine, peer_address, socket, route_handler, error_handler=None):
+ self.chopper = None
+ self.eventlets = None
+ self.parser = None
+ self.packer = None
self.state_machine = state_machine
self.peer_address = peer_address[0]
self.peer_port = peer_address[1]