From 91649f5ee7277b884d61567475de47ece4c6215a Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Thu, 27 Dec 2018 23:43:35 -0700 Subject: [PATCH] Removed args from run_program * It's been deprecated for ages * Fixes issue #79 --- .bin/Scripts/functions/common.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.bin/Scripts/functions/common.py b/.bin/Scripts/functions/common.py index 368ce687..f0315aff 100644 --- a/.bin/Scripts/functions/common.py +++ b/.bin/Scripts/functions/common.py @@ -490,12 +490,8 @@ def print_log(message='', end='\n', timestamp=True): end = end)) -def run_program(cmd, args=[], check=True, pipe=True, shell=False, **kwargs): +def run_program(cmd, check=True, pipe=True, shell=False, **kwargs): """Run program and return a subprocess.CompletedProcess object.""" - if args: - # Deprecated so let's raise an exception to find & fix all occurances - print_error('ERROR: Using args is no longer supported.') - raise Exception cmd = [c for c in cmd if c] if shell: cmd = ' '.join(cmd)