From e27e4dbb1f36ffc98e0aed90b0723750f19d2273 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 23 Oct 2013 20:45:07 +0000 Subject: [PATCH] Changed the 'pipe' utility to work with commands taking input on standard in, also when providing an emtpy string as input. This is now different from providing 'None' as the input argument, or omitting it. - Legacy-Id: 6485 --- ietf/utils/pipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/utils/pipe.py b/ietf/utils/pipe.py index a82a2aab9..d4f7c6087 100644 --- a/ietf/utils/pipe.py +++ b/ietf/utils/pipe.py @@ -9,7 +9,7 @@ def pipe(cmd, str=None): bufsize = len(str) pipe = Popen(cmd, True, bufsize) - if str: + if not str is None: pipe.tochild.write(str) pipe.tochild.close()