(name, vars, deps)
| 2384 | |
| 2385 | |
| 2386 | def _get_depend_dict(name, vars, deps): |
| 2387 | if name in vars: |
| 2388 | words = vars[name].get('depend', []) |
| 2389 | |
| 2390 | if '=' in vars[name] and not isstring(vars[name]): |
| 2391 | for word in word_pattern.findall(vars[name]['=']): |
| 2392 | # The word_pattern may return values that are not |
| 2393 | # only variables, they can be string content for instance |
| 2394 | if word not in words and word in vars and word != name: |
| 2395 | words.append(word) |
| 2396 | for word in words[:]: |
| 2397 | for w in deps.get(word, []) \ |
| 2398 | or _get_depend_dict(word, vars, deps): |
| 2399 | if w not in words: |
| 2400 | words.append(w) |
| 2401 | else: |
| 2402 | outmess('_get_depend_dict: no dependence info for %s\n' % (repr(name))) |
| 2403 | words = [] |
| 2404 | deps[name] = words |
| 2405 | return words |
| 2406 | |
| 2407 | |
| 2408 | def _calc_depend_dict(vars): |
no test coverage detected