Skip to content

Commit 1fb95d4

Browse files
authored
Use str.partition()
1 parent e2e7acb commit 1fb95d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

htpclient/initialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __update_information(self):
103103
for line in output:
104104
if not line:
105105
continue
106-
line = ' '.join(line.split(' ')[1:]).split(':')
106+
line = line.partition(' ')[2].split(':')
107107
devices.append(line[1].strip())
108108

109109
elif Initialize.get_os() == 1: # windows

0 commit comments

Comments
 (0)