Improve Python tree-shaking

This commit is contained in:
Justine Tunney 2021-09-06 19:24:10 -07:00
parent 5bb2275788
commit 4f41f2184d
169 changed files with 4182 additions and 2411 deletions

View file

@ -95,7 +95,7 @@ def make_parser(parser_list = []):
if sys.platform[ : 4] == "java":
def _create_parser(parser_name):
from org.python.core import imp
# from org.python.core import imp
drv_module = imp.importName(parser_name, 0, globals())
return drv_module.create_parser()

View file

@ -1,8 +1,4 @@
"""Different kinds of SAX Exceptions"""
import sys
if sys.platform[:4] == "java":
from java.lang import Exception
del sys
# ===== SAXEXCEPTION =====