mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-07-21 12:41:10 +02:00
remove most of Python2 compatibility code
This commit is contained in:
committed by
Scott Talbert
parent
beb9932241
commit
0257f755cf
@@ -22,18 +22,11 @@ from .librarydescription import Method, Property, Attribute
|
||||
|
||||
from . import inheritance
|
||||
|
||||
from .utilities import isPython3, PickleFile
|
||||
from .utilities import PickleFile
|
||||
from .constants import object_types, EXCLUDED_ATTRS, MODULE_TO_ICON
|
||||
from .constants import CONSTANT_RE
|
||||
|
||||
if sys.version_info < (3,):
|
||||
reload(sys)
|
||||
sys.setdefaultencoding('utf-8')
|
||||
|
||||
if isPython3():
|
||||
MethodTypes = (classmethod, types.MethodType, types.ClassMethodDescriptorType)
|
||||
else:
|
||||
MethodTypes = (classmethod, types.MethodType)
|
||||
MethodTypes = (classmethod, types.MethodType, types.ClassMethodDescriptorType)
|
||||
|
||||
try:
|
||||
import wx
|
||||
|
Reference in New Issue
Block a user