summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dsextras.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dsextras.py b/dsextras.py
index 22eda7b..a4462a4 100644
--- a/dsextras.py
+++ b/dsextras.py
@@ -26,7 +26,7 @@ def getstatusoutput(cmd):
pipe = os.popen(cmd, 'r')
text = pipe.read()
sts = pipe.close() or 0
- if text[-1] == '\n':
+ if text[-1:] == '\n':
text = text[:-1]
return sts, text
else: