Commit 629d2674 authored by Dieter Verfaillie's avatar Dieter Verfaillie Committed by John (J5) Palmieri
Browse files

dsextras.py: remove \r as wel as \n character

parent 65aa040e
......@@ -69,7 +69,7 @@ def getstatusoutput(cmd):
text = pipe.read()
sts = pipe.close() or 0
if text[-1:] == '\n':
while text[-1:] in ['\n', '\r']:
text = text[:-1]
return sts, text
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment