[Python-checkins] CVS: python/dist/src/Lib imputil.py,1.19,1.20
Martin v. L?wis
loewis@users.sourceforge.net
2001年7月28日 10:59:36 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv30766
Modified Files:
imputil.py
Log Message:
Remove usage of strop module.
Index: imputil.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imputil.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** imputil.py 2001年04月07日 16:05:24 1.19
--- imputil.py 2001年07月28日 17:59:34 1.20
***************
*** 8,12 ****
import imp ### not available in JPython?
import sys
- import strop
import __builtin__
--- 8,11 ----
***************
*** 79,83 ****
"""Python calls this hook to locate and import a module."""
! parts = strop.split(fqname, '.')
# determine the context of this import
--- 78,82 ----
"""Python calls this hook to locate and import a module."""
! parts = fqname.split('.')
# determine the context of this import
***************
*** 158,162 ****
return parent
! i = strop.rfind(parent_fqname, '.')
# a module outside of a package has no particular import context
--- 157,161 ----
return parent
! i = parent_fqname.rfind('.')
# a module outside of a package has no particular import context
***************
*** 613,617 ****
#
# from Finn Bock:
- # remove use of "strop" -- not available in JPython
# type(sys) is not a module in JPython. what to use instead?
# imp.C_EXTENSION is not in JPython. same for get_suffixes and new_module
--- 612,615 ----
***************
*** 639,643 ****
# performance
# move chaining to a subclass [gjs: it's been nuked]
- # avoid strop
# deinstall should be possible
# query mechanism needed: is a specific Importer installed?
--- 637,640 ----