From 9e3209e93146ceea943d4a993ac6a285babe0f75 Mon Sep 17 00:00:00 2001 From: Brian May Date: Sun, 24 Apr 2022 17:40:43 +1000 Subject: Remove unused flags assignment --- sshuttle/ssnet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sshuttle') diff --git a/sshuttle/ssnet.py b/sshuttle/ssnet.py index eebe227..e7ef623 100644 --- a/sshuttle/ssnet.py +++ b/sshuttle/ssnet.py @@ -443,7 +443,7 @@ class Mux(Handler): # python < 3.5 flags = fcntl.fcntl(self.wfile.fileno(), fcntl.F_GETFL) flags |= os.O_NONBLOCK - flags = fcntl.fcntl(self.wfile.fileno(), fcntl.F_SETFL, flags) + fcntl.fcntl(self.wfile.fileno(), fcntl.F_SETFL, flags) if self.outbuf and self.outbuf[0]: wrote = _nb_clean(os.write, self.wfile.fileno(), self.outbuf[0]) debug2('mux wrote: %r/%d' % (wrote, len(self.outbuf[0]))) @@ -459,7 +459,7 @@ class Mux(Handler): # python < 3.5 flags = fcntl.fcntl(self.rfile.fileno(), fcntl.F_GETFL) flags |= os.O_NONBLOCK - flags = fcntl.fcntl(self.rfile.fileno(), fcntl.F_SETFL, flags) + fcntl.fcntl(self.rfile.fileno(), fcntl.F_SETFL, flags) try: # If LATENCY_BUFFER_SIZE is inappropriately large, we will # get a MemoryError here. Read no more than 1MiB. -- cgit v1.2.3