MCPcopy Create free account
hub / github.com/numpy/numpy / fix_usage

Function fix_usage

numpy/f2py/crackfortran.py:3649–3653  ·  view source on GitHub ↗
(varname, value)

Source from the content-addressed store, hash-verified

3647 key, value = item
3648
3649 def fix_usage(varname, value):
3650 value = re.sub(r'[*]\s*\b' + varname + r'\b', varname, value)
3651 value = re.sub(r'\b' + varname + r'\b\s*[\[]\s*0\s*[\]]',
3652 varname, value)
3653 return value
3654
3655 if parent_key in ['dimension', 'check']:
3656 assert parents[-3][0] == 'vars'

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected