Package yum :: Module parser
[hide private]
[frames] | no frames]

Module parser

source code

Classes [hide private]
  ConfigPreProcessor
ConfigParser Include Pre-Processor
Functions [hide private]
 
varReplace(raw, vars)
Perform variable replacement
source code
Variables [hide private]
  _KEYCRE = re.compile(r'\$(\w+)')
  __package__ = 'yum'
Function Details [hide private]

varReplace(raw, vars)

source code 

Perform variable replacement

Parameters:
  • raw - String to perform substitution on.
  • vars - Dictionary of variables to replace. Key is variable name (without $ prefix). Value is replacement string.
Returns:
Input raw string with substituted values.