]> granicus.if.org Git - python/commitdiff
Get rid of 1.5.2 compatibility hack. :-)
authorGuido van Rossum <guido@python.org>
Tue, 3 Dec 2002 09:28:36 +0000 (09:28 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 3 Dec 2002 09:28:36 +0000 (09:28 +0000)
Lib/idlelib/ClassBrowser.py
Tools/idle/ClassBrowser.py

index 6e4b2a32eeab9493f69e5d581bc004184c2398db..338836a9fa332f573250f3a42809e420efbe3481 100644 (file)
@@ -14,14 +14,6 @@ import os
 import sys
 import pyclbr
 
-# XXX Patch pyclbr with dummies if it's vintage Python 1.5.2:
-if not hasattr(pyclbr, "readmodule_ex"):
-    pyclbr.readmodule_ex = pyclbr.readmodule
-if not hasattr(pyclbr, "Function"):
-    class Function(pyclbr.Class):
-        pass
-    pyclbr.Function = Function
-
 import PyShell
 from WindowList import ListedToplevel
 from TreeWidget import TreeNode, TreeItem, ScrolledCanvas
index 6e4b2a32eeab9493f69e5d581bc004184c2398db..338836a9fa332f573250f3a42809e420efbe3481 100644 (file)
@@ -14,14 +14,6 @@ import os
 import sys
 import pyclbr
 
-# XXX Patch pyclbr with dummies if it's vintage Python 1.5.2:
-if not hasattr(pyclbr, "readmodule_ex"):
-    pyclbr.readmodule_ex = pyclbr.readmodule
-if not hasattr(pyclbr, "Function"):
-    class Function(pyclbr.Class):
-        pass
-    pyclbr.Function = Function
-
 import PyShell
 from WindowList import ListedToplevel
 from TreeWidget import TreeNode, TreeItem, ScrolledCanvas