Updated binary operator line break code quality changes

This commit is contained in:
kuldeep.k@cisinlabs.com 2021-08-12 21:18:24 +05:30
parent 9322a683fe
commit ef01b56291
No known key found for this signature in database
GPG Key ID: AF4FB299BF7C7C2A
2 changed files with 4 additions and 4 deletions

View File

@ -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.")

View File

@ -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,