importlib.abc.InspectLoader.get_source()

abstractmethod get_source(fullname)

An abstract method to return the source of a module. It is returned as a text string using universal newlines, translating all recognized line separators into '\n' characters. Returns None if no source is available (e.g. a built-in module). Raises ImportError if the loader cannot find the module specified.

Changed in version 3.4: Raises ImportError instead of NotImplementedError.

doc_python
2016-10-07 17:34:33
Comments
Leave a Comment

Please login to continue.