summaryrefslogtreecommitdiffstats
path: root/sshuttle
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2022-04-24 17:40:43 +1000
committerBrian May <brian@linuxpenguins.xyz>2022-04-24 17:40:43 +1000
commit9e3209e93146ceea943d4a993ac6a285babe0f75 (patch)
treeed718f7e7ed589526963e63566a3a0b09f0ae8e3 /sshuttle
parent7d67231faf512d8e6cb36656bc2da8c665b12346 (diff)
Remove unused flags assignment
Diffstat (limited to 'sshuttle')
-rw-r--r--sshuttle/ssnet.py4
1 files changed, 2 insertions, 2 deletions
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.