MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / is_package

Method is_package

pager_lib/six.py:219–226  ·  view source on GitHub ↗

Return true, if the named module is a package. We need this method to get correct spec objects with Python 3.4 (see PEP451)

(self, fullname)

Source from the content-addressed store, hash-verified

217 return mod
218
219 def is_package(self, fullname):
220 """
221 Return true, if the named module is a package.
222
223 We need this method to get correct spec objects with
224 Python 3.4 (see PEP451)
225 """
226 return hasattr(self.__get_module(fullname), "__path__")
227
228 def get_code(self, fullname):
229 """Return None

Callers

nothing calls this directly

Calls 1

__get_moduleMethod · 0.95

Tested by

no test coverage detected