Package portage :: Package cache :: Module template
[hide private]

Module template

source code

Classes [hide private]
  basestring
str(object='') -> string
  long
int(x=0) -> int or long int(x, base=10) -> int or long
  database
Functions [hide private]
 
serialize_eclasses(eclass_dict, chf_type='mtime', paths=True)
takes a dict, returns a string representing said dict
source code
 
_md5_deserializer(md5)
Without this validation, it's possible for reconstruct_eclasses to mistakenly interpret mtime data as md5 data, and return an invalid data structure containing strings where ints are expected.
source code
 
reconstruct_eclasses(cpv, eclass_string, chf_type='mtime', paths=True)
returns a dict when handed a string generated by serialize_eclasses
source code
Variables [hide private]
  _keysorter = operator.itemgetter(0)
  _chf_deserializers = {'md5': _md5_deserializer, 'mtime': long,}
  __package__ = 'portage.cache'

Imports: cache_errors, InvalidRestriction, ProtectedDict, sys, warnings, operator, _unicode