module documentation

Undocumented

Class FastEncodingBuffer a very rudimentary buffer that is faster than StringIO, and supports unicode data.
Class LRUCache A dictionary-like object that stores a limited number of items, discarding lesser used items periodically.
Class memoized_instancemethod Decorate a method memoize its return value.
Class memoized_property A read-only @property that is only evaluated once.
Class PluginLoader Undocumented
Class SetLikeDict a dictionary that has some setlike methods on it
Function parse_encoding Deduce the encoding of a Python source file (binary mode) from magic comment.
Function read_file Undocumented
Function read_python_file Undocumented
Function restore__ast Attempt to restore the required classes to the _ast module if it appears to be missing them
Function sorted_dict_repr repr() a dictionary with the keys in order.
Function to_list Undocumented
Function update_wrapper Undocumented
Function verify_directory create and/or verify a filesystem directory.
Variable _PYTHON_MAGIC_COMMENT_re Undocumented
def parse_encoding(fp): (source)

Deduce the encoding of a Python source file (binary mode) from magic comment. It does this in the same way as the `Python interpreter`__ .. __: http://docs.python.org/ref/encodings.html The ``fp`` argument should be a seekable file object in binary mode.

def read_file(path, mode='rb'): (source)

Undocumented

def read_python_file(path): (source)

Undocumented

def restore__ast(_ast): (source)

Attempt to restore the required classes to the _ast module if it appears to be missing them

def sorted_dict_repr(d): (source)

repr() a dictionary with the keys in order. Used by the lexer unit test to compare parse trees based on strings.

def to_list(x, default=None): (source)

Undocumented

def update_wrapper(decorated, fn): (source)

Undocumented

def verify_directory(dir_): (source)

create and/or verify a filesystem directory.

_PYTHON_MAGIC_COMMENT_re = (source)

Undocumented