diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-05-14 22:11:14 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-05-14 22:11:14 (GMT) |
commit | 8aad7f27a4fe285bee9cfc253c374bb611230247 (patch) | |
tree | 1677f11843ea0fde2763a35bc9da3bf405aad22e /Lib/idlelib | |
parent | dee32bd256011d21ea0dbef0ac002ae4e1cacf62 (diff) | |
parent | 2733618fd933bebc5a1c33437135b2cc3aacb018 (diff) | |
download | cpython-8aad7f27a4fe285bee9cfc253c374bb611230247.zip cpython-8aad7f27a4fe285bee9cfc253c374bb611230247.tar.gz cpython-8aad7f27a4fe285bee9cfc253c374bb611230247.tar.bz2 |
Merge with 3.4
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/GrepDialog.py | 1 | ||||
-rw-r--r-- | Lib/idlelib/IOBinding.py | 5 | ||||
-rw-r--r-- | Lib/idlelib/PyParse.py | 1 | ||||
-rw-r--r-- | Lib/idlelib/RemoteDebugger.py | 1 | ||||
-rw-r--r-- | Lib/idlelib/ScriptBinding.py | 4 | ||||
-rw-r--r-- | Lib/idlelib/SearchDialog.py | 2 | ||||
-rw-r--r-- | Lib/idlelib/TreeWidget.py | 2 | ||||
-rw-r--r-- | Lib/idlelib/configDialog.py | 1 |
8 files changed, 5 insertions, 12 deletions
diff --git a/Lib/idlelib/GrepDialog.py b/Lib/idlelib/GrepDialog.py index aa866d0..721b231 100644 --- a/Lib/idlelib/GrepDialog.py +++ b/Lib/idlelib/GrepDialog.py @@ -5,7 +5,6 @@ import sys from tkinter import StringVar, BooleanVar, Checkbutton # for GrepDialog from tkinter import Tk, Text, Button, SEL, END # for htest from idlelib import SearchEngine -import itertools from idlelib.SearchDialogBase import SearchDialogBase # Importing OutputWindow fails due to import loop # EditorWindow -> GrepDialop -> OutputWindow -> EditorWindow diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index 841a308..505cc8b 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -1,5 +1,4 @@ import os -import types import shlex import sys import codecs @@ -525,7 +524,7 @@ class IOBinding: if self.editwin.flist: self.editwin.update_recent_files_list(filename) -def _io_binding(parent): +def _io_binding(parent): # htest # root = Tk() root.title("Test IOBinding") width, height, x, y = list(map(int, re.split('[x+]', parent.geometry()))) @@ -548,7 +547,7 @@ def _io_binding(parent): text.pack() text.focus_set() editwin = MyEditWin(text) - io = IOBinding(editwin) + IOBinding(editwin) if __name__ == "__main__": from idlelib.idle_test.htest import run diff --git a/Lib/idlelib/PyParse.py b/Lib/idlelib/PyParse.py index 3e501ca..9ccbb25 100644 --- a/Lib/idlelib/PyParse.py +++ b/Lib/idlelib/PyParse.py @@ -1,7 +1,6 @@ import re import sys from collections import Mapping -from functools import partial # Reason last stmt is continued (or C_NONE if it's not). (C_NONE, C_BACKSLASH, C_STRING_FIRST_LINE, diff --git a/Lib/idlelib/RemoteDebugger.py b/Lib/idlelib/RemoteDebugger.py index d8662bb..6672ba6 100644 --- a/Lib/idlelib/RemoteDebugger.py +++ b/Lib/idlelib/RemoteDebugger.py @@ -21,7 +21,6 @@ barrier, in particular frame and traceback objects. """ import types -from idlelib import rpc from idlelib import Debugger debugging = 0 diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py index b783637..3d11e97 100644 --- a/Lib/idlelib/ScriptBinding.py +++ b/Lib/idlelib/ScriptBinding.py @@ -18,13 +18,11 @@ XXX GvR Redesign this interface (yet again) as follows: """ import os -import re import string import tabnanny import tokenize import tkinter.messagebox as tkMessageBox -from idlelib.EditorWindow import EditorWindow -from idlelib import PyShell, IOBinding +from idlelib import PyShell from idlelib.configHandler import idleConf from idlelib import macosxSupport diff --git a/Lib/idlelib/SearchDialog.py b/Lib/idlelib/SearchDialog.py index 38408b8..77ef7b9 100644 --- a/Lib/idlelib/SearchDialog.py +++ b/Lib/idlelib/SearchDialog.py @@ -23,7 +23,7 @@ def find_selection(text): class SearchDialog(SearchDialogBase): def create_widgets(self): - f = SearchDialogBase.create_widgets(self) + SearchDialogBase.create_widgets(self) self.make_button("Find Next", self.default_command, 1) def default_command(self, event=None): 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) diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py index ec1de6c..b0247f0 100644 --- a/Lib/idlelib/configDialog.py +++ b/Lib/idlelib/configDialog.py @@ -16,7 +16,6 @@ import tkinter.font as tkFont from idlelib.configHandler import idleConf from idlelib.dynOptionMenuWidget import DynOptionMenu -from idlelib.tabbedpages import TabbedPageSet from idlelib.keybindingDialog import GetKeysDialog from idlelib.configSectionNameDialog import GetCfgSectionNameDialog from idlelib.configHelpSourceEdit import GetHelpSourceDialog |