Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes
importlib._bootstrap._FileLoader Class Reference
Inheritance diagram for importlib._bootstrap._FileLoader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def get_filename
def get_data

Private Attributes

 _name
 _path

Detailed Description

Base file loader class which implements the loader protocol methods that
require file system usage.

Definition at line 439 of file _bootstrap.py.


Constructor & Destructor Documentation

def importlib._bootstrap._FileLoader.__init__ (   self,
  fullname,
  path 
)
Cache the module name and the path to the file found by the
finder.

Definition at line 444 of file _bootstrap.py.

00444 
00445     def __init__(self, fullname, path):
00446         """Cache the module name and the path to the file found by the
00447         finder."""
00448         self._name = fullname
00449         self._path = path

Here is the caller graph for this function:


Member Function Documentation

def importlib._bootstrap._FileLoader.get_data (   self,
  path 
)
Return the data from path as raw bytes.

Definition at line 455 of file _bootstrap.py.

00455 
00456     def get_data(self, path):
00457         """Return the data from path as raw bytes."""
00458         with _io.FileIO(path, 'r') as file:
00459             return file.read()
00460 

Here is the caller graph for this function:

def importlib._bootstrap._FileLoader.get_filename (   self,
  fullname 
)
Return the path to the source file as found by the finder.

Definition at line 451 of file _bootstrap.py.

00451 
00452     def get_filename(self, fullname):
00453         """Return the path to the source file as found by the finder."""
00454         return self._path

Here is the caller graph for this function:


Member Data Documentation

Definition at line 447 of file _bootstrap.py.

Definition at line 448 of file _bootstrap.py.


The documentation for this class was generated from the following file: