Updated binary operator line break code quality changes
This commit is contained in:
parent
9322a683fe
commit
ef01b56291
|
@ -972,8 +972,8 @@ if os.name == 'posix':
|
||||||
|
|
||||||
def getsockopt(self, level, optname, buflen=None):
|
def getsockopt(self, level, optname, buflen=None):
|
||||||
"""Fake getsockopt()"""
|
"""Fake getsockopt()"""
|
||||||
if (level == socket.SOL_SOCKET and optname == socket.SO_ERROR and
|
if (level == socket.SOL_SOCKET and optname == socket.SO_ERROR
|
||||||
not buflen):
|
and not buflen):
|
||||||
return 0
|
return 0
|
||||||
raise NotImplementedError(
|
raise NotImplementedError(
|
||||||
"Only asyncore specific behaviour implemented.")
|
"Only asyncore specific behaviour implemented.")
|
||||||
|
|
|
@ -107,8 +107,8 @@ class ObjectTracker(object):
|
||||||
del i.objectsNewToMe[hashid]
|
del i.objectsNewToMe[hashid]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
if streamNumber in i.streams and (
|
if streamNumber in i.streams and (
|
||||||
not Dandelion().hasHash(hashid) or
|
not Dandelion().hasHash(hashid)
|
||||||
Dandelion().objectChildStem(hashid) == i):
|
or Dandelion().objectChildStem(hashid) == i):
|
||||||
with i.objectsNewToThemLock:
|
with i.objectsNewToThemLock:
|
||||||
i.objectsNewToThem[hashid] = time.time()
|
i.objectsNewToThem[hashid] = time.time()
|
||||||
# update stream number,
|
# update stream number,
|
||||||
|
|
Reference in New Issue
Block a user