From 5d2d4bef16a7c91eb9ec49f68926d7f7ed377ba4 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 31 Jan 2012 21:42:54 +0100 Subject: subprocess: moved the return (for newlist by mailman) into other script --- util.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/util.py b/util.py index 1b8aa5c..0709d58 100644 --- a/util.py +++ b/util.py @@ -41,9 +41,7 @@ def create_list(listname, listadmin, passwd=None): # create list p = subprocess.Popen(['sudo', '-n', os.path.join(config.mailman_path, 'bin', 'neueliste.bash'), listname, listadmin, passwd], - stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdin=subprocess.PIPE) - print >>p.stdin, "" - + stdout=subprocess.PIPE, stderr=subprocess.STDOUT) (progress, junk) = p.communicate() return (p.returncode == 0, progress) except Exception as e: -- cgit v1.2.3-1-g7c22