From 9923e972797738606235f3817062eed4dd8d8d98 Mon Sep 17 00:00:00 2001 From: lakshyacis Date: Mon, 4 Nov 2019 20:21:22 +0530 Subject: [PATCH] class_singleWorker quality fixes --- src/class_singleWorker.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/class_singleWorker.py b/src/class_singleWorker.py index 60eabe2e..a275b79d 100644 --- a/src/class_singleWorker.py +++ b/src/class_singleWorker.py @@ -1,6 +1,5 @@ """ -src/class_singleWorker.py -========================= +Thread for performing PoW """ # pylint: disable=protected-access,too-many-branches,too-many-statements,no-self-use,too-many-lines,too-many-locals @@ -468,8 +467,8 @@ class singleWorker(StoppableThread): def sendOnionPeerObj(self, peer=None): """Send onionpeer object representing peer""" if not peer: # find own onionhostname - for peer in state.ownAddresses: - if peer.host.endswith('.onion'): + for peer_ in state.ownAddresses: + if peer_.host.endswith('.onion'): break else: return