bpo-33904: In IDLE's rstrip, rename class RstripExtension as Rstrip … · python/cpython@b41dc56

@@ -58,7 +58,7 @@ class EditorWindow(object):

5858

from idlelib.codecontext import CodeContext

5959

from idlelib.paragraph import FormatParagraph

6060

from idlelib.parenmatch import ParenMatch

61-

from idlelib.rstrip import RstripExtension

61+

from idlelib.rstrip import Rstrip

6262

from idlelib.zoomheight import ZoomHeight

63636464

filesystemencoding = sys.getfilesystemencoding() # for file names

@@ -310,7 +310,7 @@ def __init__(self, flist=None, filename=None, key=None, root=None):

310310

scriptbinding = ScriptBinding(self)

311311

text.bind("<<check-module>>", scriptbinding.check_module_event)

312312

text.bind("<<run-module>>", scriptbinding.run_module_event)

313-

text.bind("<<do-rstrip>>", self.RstripExtension(self).do_rstrip)

313+

text.bind("<<do-rstrip>>", self.Rstrip(self).do_rstrip)

314314

ctip = self.Calltip(self)

315315

text.bind("<<try-open-calltip>>", ctip.try_open_calltip_event)

316316

#refresh-calltip must come after paren-closed to work right