From 5fbdb9b4488f90c944461be3c45d64be90c84b15 Mon Sep 17 00:00:00 2001 From: Sourcery AI Date: Thu, 9 Jul 2020 07:41:52 +0000 Subject: [PATCH] Refactored by Sourcery --- Playout/management/commands/_funcs.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Playout/management/commands/_funcs.py b/Playout/management/commands/_funcs.py index df04272..7dab287 100644 --- a/Playout/management/commands/_funcs.py +++ b/Playout/management/commands/_funcs.py @@ -2,17 +2,15 @@ import platform def checkOs(): - osInfoObject = { + return { 'osType': os.name, 'systemType': platform.system(), 'systemRelease': platform.release() } - return osInfoObject def definePathDelimiter(): osInfoObject = checkOs() if(osInfoObject['systemType'] == 'Windows'): return '\\' else: - return '/' - pass \ No newline at end of file + return '/' \ No newline at end of file