Skip to content

Commit e27e4db

Browse files
committed
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
1 parent 3863b0d commit e27e4db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/utils/pipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def pipe(cmd, str=None):
99
bufsize = len(str)
1010

1111
pipe = Popen(cmd, True, bufsize)
12-
if str:
12+
if not str is None:
1313
pipe.tochild.write(str)
1414
pipe.tochild.close()
1515

0 commit comments

Comments
 (0)