[svn r38203] rename getpymodule/getpycodeobj to "_" methods

(which can build C modules on the fly)
it's not clear they are still useful this way
and they are easy to confuse with pyimport()

--HG--
branch : trunk
This commit is contained in:
hpk
2007-02-08 20:48:31 +01:00
parent 0a79e56b40
commit 499d60c8ab
4 changed files with 18 additions and 18 deletions

View File

@@ -426,15 +426,15 @@ class LocalPath(common.FSPathBase, PlatformMixin):
raise
return mod
def getpymodule(self):
def _getpymodule(self):
"""resolve this path to a module python object. """
if self.ext != '.c':
return super(LocalPath, self).getpymodule()
return super(LocalPath, self)._getpymodule()
from py.__.misc.buildcmodule import make_module_from_c
mod = make_module_from_c(self)
return mod
def getpycodeobj(self):
def _getpycodeobj(self):
""" read the path and compile it to a code object. """
dotpy = self.check(ext='.py')
if dotpy: