summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-01-31 21:42:54 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2012-01-31 21:45:02 +0100
commit5d2d4bef16a7c91eb9ec49f68926d7f7ed377ba4 (patch)
tree11a3c8862d4830f2948fded2ff46839154b84b3f
parentaf32a0aa44a15c004446722144c5581f6fa8dcb1 (diff)
downloadsites-5d2d4bef16a7c91eb9ec49f68926d7f7ed377ba4.tar.gz
sites-5d2d4bef16a7c91eb9ec49f68926d7f7ed377ba4.tar.bz2
sites-5d2d4bef16a7c91eb9ec49f68926d7f7ed377ba4.zip
subprocess: moved the return (for newlist by mailman) into other script
-rw-r--r--util.py4
1 files changed, 1 insertions, 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: