[Python-checkins] cpython: Issue #27156: Remove more unused idlelib code.

terry.reedy python-checkins at python.org
Sun Jun 5 21:33:05 EDT 2016


https://hg.python.org/cpython/rev/166784c40be8
changeset: 101760:166784c40be8
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Sun Jun 05 21:32:45 2016 -0400
summary:
 Issue #27156: Remove more unused idlelib code.
files:
 Lib/idlelib/macosx.py | 10 ----------
 Lib/idlelib/stackviewer.py | 3 ---
 2 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/Lib/idlelib/macosx.py b/Lib/idlelib/macosx.py
--- a/Lib/idlelib/macosx.py
+++ b/Lib/idlelib/macosx.py
@@ -5,16 +5,6 @@
 import tkinter
 import warnings
 
-def runningAsOSXApp():
- warnings.warn("runningAsOSXApp() is deprecated, use isAquaTk()",
- DeprecationWarning, stacklevel=2)
- return isAquaTk()
-
-def isCarbonAquaTk(root):
- warnings.warn("isCarbonAquaTk(root) is deprecated, use isCarbonTk()",
- DeprecationWarning, stacklevel=2)
- return isCarbonTk()
-
 _tk_type = None
 
 def _initializeTkVariantTests(root):
diff --git a/Lib/idlelib/stackviewer.py b/Lib/idlelib/stackviewer.py
--- a/Lib/idlelib/stackviewer.py
+++ b/Lib/idlelib/stackviewer.py
@@ -120,9 +120,6 @@
 sublist.append(item)
 return sublist
 
- def keys(self): # unused, left for possible 3rd party use
- return list(self.object.keys())
-
 def _stack_viewer(parent):
 root = tk.Tk()
 root.title("Test StackViewer")
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /