From 1fb95d45e35b67e2a14c4032d22a836a2d4e85ac Mon Sep 17 00:00:00 2001 From: Justin Su Date: Sat, 6 Sep 2025 18:12:45 -0400 Subject: [PATCH] Use `str.partition()` --- htpclient/initialize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htpclient/initialize.py b/htpclient/initialize.py index 92853ba..408ac88 100644 --- a/htpclient/initialize.py +++ b/htpclient/initialize.py @@ -103,7 +103,7 @@ def __update_information(self): for line in output: if not line: continue - line = ' '.join(line.split(' ')[1:]).split(':') + line = line.partition(' ')[2].split(':') devices.append(line[1].strip()) elif Initialize.get_os() == 1: # windows