From b28edfdc8ea83501b8b23fa9e07d5728a0382089 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 5 Jul 2017 06:26:21 -0400 Subject: [PATCH] Python: separate description of dummy module from docs of run() --- src/modules/dummypython/main.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/modules/dummypython/main.py b/src/modules/dummypython/main.py index 4a68cf963..29837ba96 100644 --- a/src/modules/dummypython/main.py +++ b/src/modules/dummypython/main.py @@ -19,22 +19,22 @@ # You should have received a copy of the GNU General Public License # along with Calamares. If not, see . +""" +=== 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 +if something went wrong. +""" + import libcalamares import os from time import gmtime, strftime, sleep def run(): - """ - 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 - if something went wrong. - - :return: - """ + """Dummy python job.""" os.system("/bin/sh -c \"touch ~/calamares-dummypython\"") accumulator = strftime("%Y-%m-%d %H:%M:%S", gmtime()) + "\n" accumulator += "Calamares version: " + libcalamares.VERSION_SHORT + "\n"