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

Function markouterparen

numpy/f2py/crackfortran.py:859–874  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

857
858
859def markouterparen(line):
860 l = ''
861 f = 0
862 for c in line:
863 if c == '(':
864 f = f + 1
865 if f == 1:
866 l = l + '@(@'
867 continue
868 elif c == ')':
869 f = f - 1
870 if f == 0:
871 l = l + '@)@'
872 continue
873 l = l + c
874 return l
875
876
877def markoutercomma(line, comma=','):

Callers 5

cracklineFunction · 0.85
_resolvenameargspatternFunction · 0.85
analyzelineFunction · 0.85
cracktypespec0Function · 0.85
updatevarsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected