diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2018-09-17 15:51:22 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2018-09-17 15:51:22 -0700 |
commit | 4e31612cfbcd7cb333ac54571f11dd5593b15d94 (patch) | |
tree | b9af871f3ee08287229260d26079a6485d0f0273 /tests/loop.py | |
parent | 025a250d38b0046e06dfacf437a09276a84e2c59 (diff) |
Blacken 2.0 with black 18.6b4
Diffstat (limited to 'tests/loop.py')
-rw-r--r-- | tests/loop.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/loop.py b/tests/loop.py index 6c432867..dd1f5a0c 100644 --- a/tests/loop.py +++ b/tests/loop.py @@ -22,13 +22,13 @@ import threading from paramiko.common import asbytes -class LoopSocket (object): +class LoopSocket(object): """ A LoopSocket looks like a normal socket, but all data written to it is delivered on the read-end of another LoopSocket, and vice versa. It's like a software "socketpair". """ - + def __init__(self): self.__in_buffer = bytes() self.__lock = threading.Lock() @@ -84,7 +84,7 @@ class LoopSocket (object): self.__cv.notifyAll() finally: self.__lock.release() - + def __unlink(self): m = None self.__lock.acquire() @@ -96,5 +96,3 @@ class LoopSocket (object): self.__lock.release() if m is not None: m.__unlink() - - |