From ef01b562917cfeff34495c10fb9b9ccf43f27ee8 Mon Sep 17 00:00:00 2001 From: "kuldeep.k@cisinlabs.com" Date: Thu, 12 Aug 2021 21:18:24 +0530 Subject: [PATCH] Updated binary operator line break code quality changes --- src/network/asyncore_pollchoose.py | 4 ++-- src/network/objectracker.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/network/asyncore_pollchoose.py b/src/network/asyncore_pollchoose.py index cbe0fa25..bdd312c6 100644 --- a/src/network/asyncore_pollchoose.py +++ b/src/network/asyncore_pollchoose.py @@ -972,8 +972,8 @@ if os.name == 'posix': def getsockopt(self, level, optname, buflen=None): """Fake getsockopt()""" - if (level == socket.SOL_SOCKET and optname == socket.SO_ERROR and - not buflen): + if (level == socket.SOL_SOCKET and optname == socket.SO_ERROR + and not buflen): return 0 raise NotImplementedError( "Only asyncore specific behaviour implemented.") diff --git a/src/network/objectracker.py b/src/network/objectracker.py index ca29c023..65e06de4 100644 --- a/src/network/objectracker.py +++ b/src/network/objectracker.py @@ -107,8 +107,8 @@ class ObjectTracker(object): del i.objectsNewToMe[hashid] except KeyError: if streamNumber in i.streams and ( - not Dandelion().hasHash(hashid) or - Dandelion().objectChildStem(hashid) == i): + not Dandelion().hasHash(hashid) + or Dandelion().objectChildStem(hashid) == i): with i.objectsNewToThemLock: i.objectsNewToThem[hashid] = time.time() # update stream number,