[networkcfg] Don't mindlessly PEP8
This commit is contained in:
parent
bf60d0576b
commit
13d69cb813
@ -98,10 +98,9 @@ def run():
|
||||
return (_("Configuration Error"),
|
||||
_("No root mount point is given for <pre>{!s}</pre> to use." ).format("networkcfg"))
|
||||
|
||||
source_nm = "/etc/NetworkManager/system-connections/"
|
||||
target_nm = os.path.join(
|
||||
root_mount_point, "etc/NetworkManager/system-connections/"
|
||||
)
|
||||
nm_connections = "etc/NetworkManager/system-connections/"
|
||||
source_nm = "/" + nm_connections
|
||||
target_nm = os.path.join(root_mount_point, nm_connections)
|
||||
|
||||
# Sanity checks. We don't want to do anything if a network
|
||||
# configuration already exists on the target
|
||||
@ -122,8 +121,7 @@ def run():
|
||||
replace_username(target_network, live_user, user)
|
||||
except FileNotFoundError:
|
||||
libcalamares.utils.debug(
|
||||
"Can't copy network configuration files in "
|
||||
+ "{}".format(source_network)
|
||||
"Can't copy network configuration files in {}".format(source_network)
|
||||
)
|
||||
except FileExistsError:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user