diff options
author | Edgar Sousa <edg@edgsousa.xyz> | 2018-06-12 10:37:37 +0100 |
---|---|---|
committer | edgsousa <mythund3r> | 2018-06-12 10:37:37 +0100 |
commit | 7696885e88e97b99a96069890a7143de7f3a40aa (patch) | |
tree | e6fd1757c66f9ba88596f78a578bd548c646560d /tests/loop.py | |
parent | 369c85d32f3ebe392c9f085347d48c0791b563fc (diff) | |
parent | 6efe46d6ab0ad2daba436dc0aaed29f57b13bd2c (diff) |
Merge remote-tracking branch 'upstream/master'
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() - - |