Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/t/e/testrunner-HEAD/pysystests/app/workload_manager.py   testrunner(Download)
def replace_magic_vars(str_):
    ref = re.match(r".*\$(?P<var>\w+)",str_).group('var')
    ref = str(ref.strip())
    value = CacheHelper.getPhaseVar(ref) or 0
    str_  = str_.replace("$"+ref, str(value))