From 6273518cb1ebedf1f7e63380c1dd547802f5ede0 Mon Sep 17 00:00:00 2001 From: Alf Gaida Date: Mon, 20 Mar 2017 22:28:29 +0100 Subject: [PATCH] Fixed pep8 whining in module removeuser added myself to copyright --- src/modules/removeuser/main.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/modules/removeuser/main.py b/src/modules/removeuser/main.py index f31e1dc9d..6d4946f23 100644 --- a/src/modules/removeuser/main.py +++ b/src/modules/removeuser/main.py @@ -4,6 +4,7 @@ # === This file is part of Calamares - === # # Copyright 2015, Teo Mrnjavac +# Copyright 2017. Alf Gaida # # Calamares is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,12 +24,16 @@ import libcalamares def run(): - """ Remove live user from target system """ + """ + Remove live user from target system + """ username = libcalamares.job.configuration["username"] try: - libcalamares.utils.check_target_env_call(["userdel", "-f", "-r", username]) + libcalamares.utils.check_target_env_call(["userdel", "-f", + "-r", username]) except subprocess.CalledProcessError as e: - libcalamares.utils.debug("Cannot remove user.", "'userdel' terminated with exit code {}.".format(e.returncode)) - + libcalamares.utils.debug("Cannot remove user.", + "'userdel' terminated with exit code", + "{}.".format(e.returncode) return None