File tree Expand file tree Collapse file tree
com/win32comext/axscript/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88"""
99
1010import re
11+ import types
1112
1213import pythoncom
1314import win32api
@@ -210,10 +211,9 @@ def __init__(self):
210211
211212 def InitNew (self ):
212213 framework .COMScript .InitNew (self )
213- import imp
214214
215215 self .scriptDispatch = None
216- self .globalNameSpaceModule = imp . new_module ("__ax_main__" )
216+ self .globalNameSpaceModule = types . ModuleType ("__ax_main__" )
217217 self .globalNameSpaceModule .__dict__ ["ax" ] = AXScriptAttribute (self )
218218
219219 self .codeBlocks = []
Original file line number Diff line number Diff line change 22
33# this code adapted from "Tomcat JK2 ISAPI redirector", part of Apache
44# Created July 2004, Mark Hammond.
5- import imp
5+ import importlib . machinery
66import os
77import shutil
88import stat
3939_DEFAULT_ENABLE_DIR_BROWSING = False
4040_DEFAULT_ENABLE_DEFAULT_DOC = False
4141
42- _extensions = [ext for ext , _ , _ in imp . get_suffixes () ]
42+ _extensions = [ext for ext , _ , _ in importlib . machinery . EXTENSION_SUFFIXES ]
4343is_debug_build = "_d.pyd" in _extensions
4444
4545this_dir = os .path .abspath (os .path .dirname (__file__ ))
You can’t perform that action at this time.
0 commit comments