# HG changeset patch # User domruf # Date 1494448957 -7200 # Node ID 1e4aaf9a58a6674d6eae44672bcda344dc524ce5 # Parent ce818fb1e26410b68fd9fa8c49211b41d5aac472 fcs: remove unused run_command - it doesn't work anyway "Instance of 'Popen' has no 'retcode' member" found by pylint. diff -r ce818fb1e264 -r 1e4aaf9a58a6 kallithea/lib/vcs/utils/helpers.py --- a/kallithea/lib/vcs/utils/helpers.py Wed May 10 22:05:16 2017 +0200 +++ b/kallithea/lib/vcs/utils/helpers.py Wed May 10 22:42:37 2017 +0200 @@ -99,16 +99,6 @@ return result -def run_command(cmd, *args): - """ - Runs command on the system with given ``args``. - """ - command = ' '.join((cmd, args)) - p = Popen(command, shell=True, stdout=PIPE, stderr=PIPE) - stdout, stderr = p.communicate() - return p.retcode, stdout, stderr - - def get_highlighted_code(name, code, type='terminal'): """ If pygments are available on the system