[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] cosmetic bugfix: avoid carriage return without newline



Update of /home/or/cvsroot/control/python
In directory moria:/tmp/cvs-serv6604

Modified Files:
	TorCtl1.py 
Log Message:
cosmetic bugfix: avoid carriage return without newline


Index: TorCtl1.py
===================================================================
RCS file: /home/or/cvsroot/control/python/TorCtl1.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- TorCtl1.py	22 Nov 2005 05:56:23 -0000	1.23
+++ TorCtl1.py	1 Dec 2005 07:06:37 -0000	1.24
@@ -136,8 +136,8 @@
         if self._debugFile:
             amsg = msg
             lines = amsg.split("\n")
-            if len(lines) > 3:
-                amsg = "\n".join(lines[:3])
+            if len(lines) > 2:
+                amsg = "\n".join(lines[:2]) + "\n"
             self._debugFile.write(">>> %s" % amsg)
         self._s.write(msg)