summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-09-23 02:59:53 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-09-23 02:59:53 (GMT)
commit1ccf44c4766644e64c183c0b1dbf00ca76f847cc (patch)
tree2459c1173a042b954bf7917dae6d0fe8fe911bcb /Lib/idlelib
parent982a08f8bb0e5df633cd502f86c0f1d019497e80 (diff)
parenta0ae789fd4ba403be865a71aefa5dc7c4c50c502 (diff)
downloadcpython-1ccf44c4766644e64c183c0b1dbf00ca76f847cc.zip
cpython-1ccf44c4766644e64c183c0b1dbf00ca76f847cc.tar.gz
cpython-1ccf44c4766644e64c183c0b1dbf00ca76f847cc.tar.bz2
Merge with 3.4
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/EditorWindow.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index dacb843..74a4749 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -43,11 +43,6 @@ def _sphinx_version():
class HelpDialog(object):
def __init__(self):
- import warnings as w
- w.warn("EditorWindow.HelpDialog is no longer used by Idle.\n"
- "It will be removed in 3.6 or later.\n"
- "It has been replaced by private help.HelpWindow\n",
- DeprecationWarning, stacklevel=2)
self.parent = None # parent of help window
self.dlg = None # the help window iteself
@@ -59,6 +54,11 @@ class HelpDialog(object):
near - a Toplevel widget (e.g. EditorWindow or PyShell)
to use as a reference for placing the help window
"""
+ import warnings as w
+ w.warn("EditorWindow.HelpDialog is no longer used by Idle.\n"
+ "It will be removed in 3.6 or later.\n"
+ "It has been replaced by private help.HelpWindow\n",
+ DeprecationWarning, stacklevel=2)
if self.dlg is None:
self.show_dialog(parent)
if near: