From b4a365de153dc0e832caa968043833f94aceb66e Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Tue, 9 Jun 2020 02:28:40 +0300 Subject: [PATCH] Added doc string to check_platform --- Defs/ActionManager/simple_informant.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Defs/ActionManager/simple_informant.py b/Defs/ActionManager/simple_informant.py index 361048d..4eac5d4 100644 --- a/Defs/ActionManager/simple_informant.py +++ b/Defs/ActionManager/simple_informant.py @@ -221,6 +221,13 @@ def check_php(): exit() def check_platform(required_data): + """Checks system for specific platform related data and returns requested value. + + Args: + required_data (string): accepts "system" or "architecture" + Returns: + string: data requested by required_data, Returns all if required_data isn't specified. + """ system = platform.system() architecture = platform.machine() if required_data == "system":