mirror of
https://github.com/python/cpython.git
synced 2025-09-15 13:16:12 +00:00
Get rid of 1.5.2 compatibility hack. :-)
This commit is contained in:
parent
0375079e93
commit
a1962d6efd
2 changed files with 0 additions and 16 deletions
|
@ -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
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue