File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 48
48
if tmp or \
49
49
line .startswith ('TA_RetCode TA_' ) or \
50
50
line .startswith ('int TA_' ):
51
- line = re .sub ('/\*[^\*]+\*/' , '' , line ) # strip comments
51
+ line = re .sub (r '/\*[^\*]+\*/' , '' , line ) # strip comments
52
52
tmp .append (line )
53
53
if not line :
54
54
s = ' ' .join (tmp )
55
- s = re .sub ('\s+' , ' ' , s )
55
+ s = re .sub (r '\s+' , ' ' , s )
56
56
functions .append (s )
57
57
tmp = []
58
58
@@ -225,7 +225,7 @@ def cleanup(name):
225
225
i = f .index ('(' )
226
226
name = f [:i ].split ()[1 ]
227
227
args = f [i :].split (',' )
228
- args = [re .sub ('[\(\);]' , '' , s ).strip () for s in args ]
228
+ args = [re .sub (r '[\(\);]' , '' , s ).strip () for s in args ]
229
229
230
230
shortname = name [3 :]
231
231
names .append (shortname )
Original file line number Diff line number Diff line change 48
48
if tmp or \
49
49
line .startswith ('TA_RetCode TA_' ) or \
50
50
line .startswith ('int TA_' ):
51
- line = re .sub ('/\*[^\*]+\*/' , '' , line ) # strip comments
51
+ line = re .sub (r '/\*[^\*]+\*/' , '' , line ) # strip comments
52
52
tmp .append (line )
53
53
if not line :
54
54
s = ' ' .join (tmp )
55
- s = re .sub ('\s+' , ' ' , s )
55
+ s = re .sub (r '\s+' , ' ' , s )
56
56
functions .append (s )
57
57
tmp = []
58
58
@@ -92,7 +92,7 @@ def cleanup(name):
92
92
i = f .index ('(' )
93
93
name = f [:i ].split ()[1 ]
94
94
args = f [i :].split (',' )
95
- args = [re .sub ('[\(\);]' , '' , s ).strip () for s in args ]
95
+ args = [re .sub (r '[\(\);]' , '' , s ).strip () for s in args ]
96
96
97
97
shortname = name [3 :]
98
98
names .append (shortname )
You can’t perform that action at this time.
0 commit comments