Package portage :: Package env :: Module loaders
[hide private]

Module loaders

source code

Classes [hide private]
  LoaderError
  DataLoader
  EnvLoader
Class to access data in the environment
  TestTextLoader
You give it some data, it 'loads' it for you, no filesystem access
  FileLoader
Class to access data in files
  ItemFileLoader
Class to load data from a file full of items one per line
  KeyListFileLoader
Class to load data from a file full of key [list] tuples
  KeyValuePairFileLoader
Class to load data from a file full of key=value pairs
Functions [hide private]
list
RecursiveFileLoader(filename)
If filename is of type file, return a generate that yields filename else if filename is of type directory, return a generator that fields files in that directory.
source code
Variables [hide private]
  __package__ = 'portage.env'

Imports: errno, io, stat, portage, os, _encodings, _unicode_decode, _unicode_encode, _, writemsg


Function Details [hide private]

RecursiveFileLoader(filename)

source code 

If filename is of type file, return a generate that yields filename else if filename is of type directory, return a generator that fields files in that directory.

Ignore files beginning with . or ending in ~. Prune CVS directories.

Parameters:
  • filename - name of a file/directory to traverse
Returns: list
List of files to process