summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/TreeWidget.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-05-14 22:10:50 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-05-14 22:10:50 (GMT)
commit2733618fd933bebc5a1c33437135b2cc3aacb018 (patch)
tree646906cf0e738c2f296198073f9aaf9a264009dc /Lib/idlelib/TreeWidget.py
parent82796193f9d8a4f5f85f438bd8b9a5a0efbbaabe (diff)
downloadcpython-2733618fd933bebc5a1c33437135b2cc3aacb018.zip
cpython-2733618fd933bebc5a1c33437135b2cc3aacb018.tar.gz
cpython-2733618fd933bebc5a1c33437135b2cc3aacb018.tar.bz2
idlelib: remove unused names and imports (one is a duplicate import).
Diffstat (limited to 'Lib/idlelib/TreeWidget.py')
-rw-r--r--Lib/idlelib/TreeWidget.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/TreeWidget.py b/Lib/idlelib/TreeWidget.py
index 860f60c..4844a69 100644
--- a/Lib/idlelib/TreeWidget.py
+++ b/Lib/idlelib/TreeWidget.py
@@ -245,7 +245,7 @@ class TreeNode:
else:
self.edit_finish()
try:
- label = self.label
+ self.label
except AttributeError:
# padding carefully selected (on Windows) to match Entry widget:
self.label = Label(self.canvas, text=text, bd=0, padx=2, pady=2)