From 05802b1d35a085990efec83e50ac0fe4d4d0e95c Mon Sep 17 00:00:00 2001 From: Biancaa Ramesh Date: Thu, 19 Feb 2026 22:12:18 +0530 Subject: [PATCH] tools: flash_writer.py fix Python 3.13 compatibility Signed-off-by: Biancaa Ramesh --- tools/flash_writer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/flash_writer.py b/tools/flash_writer.py index 80d13e07b7452..db596187753dd 100755 --- a/tools/flash_writer.py +++ b/tools/flash_writer.py @@ -24,7 +24,12 @@ import re import subprocess import sys -import telnetlib +try: + import telnetlib +except ImportError: + telnetlib = None + # telnetlib was removed in Python 3.13 + import time import xmodem