[Python-checkins] r60118 - python/branches/release25-maint/Lib/curses/textpad.py

andrew.kuchling python-checkins at python.org
Sun Jan 20 00:44:41 CET 2008


Author: andrew.kuchling
Date: Sun Jan 20 00:44:39 2008
New Revision: 60118
Modified:
 python/branches/release25-maint/Lib/curses/textpad.py
Log:
Fix off-by-one error that resulted in missed characters
Modified: python/branches/release25-maint/Lib/curses/textpad.py
==============================================================================
--- python/branches/release25-maint/Lib/curses/textpad.py	(original)
+++ python/branches/release25-maint/Lib/curses/textpad.py	Sun Jan 20 00:44:39 2008
@@ -139,7 +139,7 @@
 if stop == 0 and self.stripspaces:
 continue
 for x in range(self.maxx+1):
- if self.stripspaces and x == stop:
+ if self.stripspaces and x > stop:
 break
 result = result + chr(ascii.ascii(self.win.inch(y, x)))
 if self.maxy > 0:


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /