Kaydet (Commit) 9d51fc89 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Patch #521670: Remove unused sys import.

üst 9f4341b3
"""Simple textbox editing widget with Emacs-like keybindings.""" """Simple textbox editing widget with Emacs-like keybindings."""
import sys, curses, ascii import curses, ascii
def rectangle(win, uly, ulx, lry, lrx): def rectangle(win, uly, ulx, lry, lrx):
"Draw a rectangle." "Draw a rectangle."
...@@ -132,7 +132,6 @@ class Textbox: ...@@ -132,7 +132,6 @@ class Textbox:
for y in range(self.maxy+1): for y in range(self.maxy+1):
self.win.move(y, 0) self.win.move(y, 0)
stop = self._end_of_line(y) stop = self._end_of_line(y)
#sys.stderr.write("y=%d, _end_of_line(y)=%d\n" % (y, stop))
if stop == 0 and self.stripspaces: if stop == 0 and self.stripspaces:
continue continue
for x in range(self.maxx+1): for x in range(self.maxx+1):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment