From 935cac6d643a2762bb56716b099cbb55e83744d7 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 27 Feb 2003 12:57:43 +0000 Subject: Small typo. * dsextras.py (getstatusoutput): Small typo. * setup.py: Cut the doclines, to make the windows installer happy --- dsextras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit