From 2f45dc0f5d4add0227d3abc1673f2107db63e6e3 Mon Sep 17 00:00:00 2001 From: Alf Gaida Date: Tue, 21 Mar 2017 21:38:33 +0100 Subject: [PATCH] Fixed pep8 whining in module dummypython added myself to copyright --- src/modules/dummypython/main.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/modules/dummypython/main.py b/src/modules/dummypython/main.py index acf47ac4e..4a68cf963 100644 --- a/src/modules/dummypython/main.py +++ b/src/modules/dummypython/main.py @@ -4,6 +4,7 @@ # === This file is part of Calamares - === # # Copyright 2014, 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 @@ -24,11 +25,12 @@ from time import gmtime, strftime, sleep def run(): - """ Example Python jobmodule. + """ + Example Python jobmodule. A Python jobmodule is a Python program which imports libcalamares and has a function run() as entry point. run() must return None if everything - went well, or a tuple (str,str) with an error message and description + went well, or a tuple (str,str) with an error message and description if something went wrong. :return: @@ -40,13 +42,16 @@ def run(): accumulator += "This job's path: " + libcalamares.job.working_path + "\n" accumulator += str(libcalamares.job.configuration) accumulator += " *** globalstorage test ***\n" - accumulator += "lala: " + str(libcalamares.globalstorage.contains("lala")) + "\n" - accumulator += "foo: " + str(libcalamares.globalstorage.contains("foo")) + "\n" + accumulator += "lala: " + accumulator += str(libcalamares.globalstorage.contains("lala")) + "\n" + accumulator += "foo: " + accumulator += str(libcalamares.globalstorage.contains("foo")) + "\n" accumulator += "count: " + str(libcalamares.globalstorage.count()) + "\n" libcalamares.globalstorage.insert("item2", "value2") libcalamares.globalstorage.insert("item3", 3) accumulator += "keys: {}\n".format(str(libcalamares.globalstorage.keys())) - accumulator += "remove: {}\n".format(str(libcalamares.globalstorage.remove("item2"))) + accumulator += "remove: {}\n".format( + str(libcalamares.globalstorage.remove("item2"))) accumulator += "values: {} {} {}\n".format( str(libcalamares.globalstorage.value("foo")), str(libcalamares.globalstorage.value("item2")),