Kaydet (Commit) a1962d6e authored tarafından Guido van Rossum's avatar Guido van Rossum

Get rid of 1.5.2 compatibility hack. :-)

üst 0375079e
...@@ -14,14 +14,6 @@ import os ...@@ -14,14 +14,6 @@ import os
import sys import sys
import pyclbr 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 import PyShell
from WindowList import ListedToplevel from WindowList import ListedToplevel
from TreeWidget import TreeNode, TreeItem, ScrolledCanvas from TreeWidget import TreeNode, TreeItem, ScrolledCanvas
......
...@@ -14,14 +14,6 @@ import os ...@@ -14,14 +14,6 @@ import os
import sys import sys
import pyclbr 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 import PyShell
from WindowList import ListedToplevel from WindowList import ListedToplevel
from TreeWidget import TreeNode, TreeItem, ScrolledCanvas from TreeWidget import TreeNode, TreeItem, ScrolledCanvas
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment