Skip to content

Commit

Permalink
Remove unused flags assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmay committed Apr 24, 2022
1 parent 7d67231 commit 9e3209e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sshuttle/ssnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def flush(self):
# 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])))
Expand All @@ -459,7 +459,7 @@ def fill(self):
# 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.
Expand Down

0 comments on commit 9e3209e

Please sign in to comment.