diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-08-31 04:50:55 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-08-31 04:50:55 (GMT) |
commit | bfbaa6b206abdb8b1c3861926f4334b879ec91cc (patch) | |
tree | a06ead659eacb714127ad34289a543942d14e4e6 /Lib/idlelib/undo.py | |
parent | 89b1162511dd62e285c1911013f07b45af07f70a (diff) | |
download | cpython-bfbaa6b206abdb8b1c3861926f4334b879ec91cc.zip cpython-bfbaa6b206abdb8b1c3861926f4334b879ec91cc.tar.gz cpython-bfbaa6b206abdb8b1c3861926f4334b879ec91cc.tar.bz2 |
Issue #27891: Consistently group and sort imports within idlelib modules.
Diffstat (limited to 'Lib/idlelib/undo.py')
-rw-r--r-- | Lib/idlelib/undo.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/idlelib/undo.py b/Lib/idlelib/undo.py index 9f291e5..4332f10 100644 --- a/Lib/idlelib/undo.py +++ b/Lib/idlelib/undo.py @@ -1,5 +1,7 @@ import string + from idlelib.delegator import Delegator + # tkintter import not needed because module does not create widgets, # although many methods operate on text widget arguments. @@ -158,7 +160,6 @@ class UndoDelegator(Delegator): class Command: - # Base class for Undoable commands tags = None @@ -204,7 +205,6 @@ class Command: class InsertCommand(Command): - # Undoable insert command def __init__(self, index1, chars, tags=None): @@ -262,7 +262,6 @@ class InsertCommand(Command): class DeleteCommand(Command): - # Undoable delete command def __init__(self, index1, index2=None): @@ -297,8 +296,8 @@ class DeleteCommand(Command): text.see('insert') ##sys.__stderr__.write("undo: %s\n" % self) -class CommandSequence(Command): +class CommandSequence(Command): # Wrapper for a sequence of undoable cmds to be undone/redone # as a unit |