[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user