Skip to content

Commit

Permalink
Replace isSet with is_set as the former is deprecated in 3.10+ (#…
Browse files Browse the repository at this point in the history
…2208)

`threading.Event.isSet` is deprecated here: python/cpython@9825bdf
  • Loading branch information
maple3142 committed Jun 26, 2023
1 parent 909d583 commit b73e74f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwnlib/tubes/tube.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ def interactive(self, prompt = term.text.bold_red('$') + ' '):

go = threading.Event()
def recv_thread():
while not go.isSet():
while not go.is_set():
try:
cur = self.recv(timeout = 0.05)
cur = cur.replace(self.newline, b'\n')
Expand All @@ -897,7 +897,7 @@ def recv_thread():
try:
os_linesep = os.linesep.encode()
to_skip = b''
while not go.isSet():
while not go.is_set():
if term.term_mode:
data = term.readline.readline(prompt = prompt, float = True)
if data:
Expand Down

0 comments on commit b73e74f

Please sign in to comment.