Skip to content

Commit 46e70a9

Browse files
authored
Merge pull request #62 from injust/patch-1
Use `str.partition()`
2 parents ed90a59 + 1fb95d4 commit 46e70a9

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)