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

Function _simplifyargs

numpy/f2py/crackfortran.py:688–694  ·  view source on GitHub ↗
(argsline)

Source from the content-addressed store, hash-verified

686 return (line, "")
687
688def _simplifyargs(argsline):
689 a = []
690 for n in markoutercomma(argsline).split('@,@'):
691 for r in '(),':
692 n = n.replace(r, '_')
693 a.append(n)
694 return ','.join(a)
695
696crackline_re_1 = re.compile(r'\s*(?P<result>\b[a-z]+\w*\b)\s*=.*', re.I)
697crackline_bind_1 = re.compile(r'\s*(?P<bind>\b[a-z]+\w*\b)\s*=.*', re.I)

Callers 1

cracklineFunction · 0.85

Calls 4

markoutercommaFunction · 0.85
replaceMethod · 0.80
splitMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected