Skip to content

Commit 18f218b

Browse files
Bastian-KrauseEmantor
authored andcommitted
linux: do not reimport re in get_systemd_service_active()
re is already imported at the top. The docstring is not detected if some import occurs before. This is now also fixed. Signed-off-by: Bastian Krause <[email protected]>
1 parent a624bdf commit 18f218b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

labgridhelper/linux.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ def get_systemd_service_active(command, service):
142142
return exitcode == 0
143143

144144
def get_interface_ip(command, interface="eth0"):
145-
import re
146145
"""Returns the global valid IPv4 address of the supplied interface
147146
148147
Args:

0 commit comments

Comments
 (0)