ajack 2004/03/11 18:57:50
Modified: python/gump/utils tools.py
Log:
Was tryign to optimize and broke 'tail'.
Revision Changes Path
1.18 +4 -4 gump/python/gump/utils/tools.py
Index: tools.py
===================================================================
RCS file: /home/cvs/gump/python/gump/utils/tools.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- tools.py 11 Mar 2004 16:13:50 -0000 1.17
+++ tools.py 12 Mar 2004 02:57:50 -0000 1.18
@@ -231,7 +231,7 @@
taillines.append(wline)
# But dump any before 'lines'
- size+=len(wline)
+ size=len(taillines)
if size > lines:
del taillines[0:(size-lines)]
size=len(taillines)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]