changeset 6646:1e4aaf9a58a6

fcs: remove unused run_command - it doesn't work anyway "Instance of 'Popen' has no 'retcode' member" found by pylint.
author domruf <dominikruf@gmail.com>
date Wed, 10 May 2017 22:42:37 +0200
parents ce818fb1e264
children fb7f38e22730
files kallithea/lib/vcs/utils/helpers.py
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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