Skip to content

Commit

Permalink
[tools] fix with Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
andryblack committed Oct 23, 2024
1 parent 6a4aeaf commit 537c036
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/modm_tools/jlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import time
import signal
import platform
import telnetlib
import telnetlib3
import subprocess

from . import gdb
Expand Down Expand Up @@ -102,7 +102,7 @@ def rtt(backend, channel=0):
# Start JLinkGDBServer in the background
with backend.scope():
time.sleep(0.5)
with telnetlib.Telnet("localhost", 19021) as tn:
with telnetlib3.Telnet("localhost", 19021) as tn:
try:
tn.interact()
except KeyboardInterrupt:
Expand Down
4 changes: 2 additions & 2 deletions tools/modm_tools/openocd.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import signal
import tempfile
import platform
import telnetlib
import telnetlib3
import subprocess

from . import utils
Expand Down Expand Up @@ -130,7 +130,7 @@ def rtt(backend, channel=0):
# Start OpenOCD in the background
with backend.scope():
time.sleep(0.5)
with telnetlib.Telnet("localhost", 9090+channel) as tn:
with telnetlib3.Telnet("localhost", 9090+channel) as tn:
try:
tn.interact()
except KeyboardInterrupt:
Expand Down

0 comments on commit 537c036

Please sign in to comment.