8000 Merge pull request #20369 from bilderbuchi/missing_diagnostics_newlines · numpy/numpy@b75fe57 · GitHub
[go: up one dir, main page]

Skip to content

Commit b75fe57

Browse files
Merge pull request #20369 from bilderbuchi/missing_diagnostics_newlines
MAINT: Fix newlines in diagnostics output of numpy.f2py.
2 parents 7310c09 + cbc25d2 commit b75fe57

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

numpy/f2py/capi_maps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def getpydocsign(a, var):
442442
sigout = sig
443443
else:
444444
errmess(
445-
'getpydocsign: Could not resolve docsignature for "%s".\\n' % a)
445+
'getpydocsign: Could not resolve docsignature for "%s".\n' % a)
446446
return sig, sigout
447447

448448

numpy/f2py/crackfortran.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,10 +1170,10 @@ def analyzeline(m, case, line):
11701170
groupcache[groupcounter]['args'].append(k)
11711171
else:
11721172
errmess(
1173-
'analyzeline: intent(callback) %s is ignored' % (k))
1173+
'analyzeline: intent(callback) %s is ignored\n' % (k))
11741174
else:
11751175
errmess('analyzeline: intent(callback) %s is already'
1176-
' in argument list' % (k))
1176+
' in argument list\n' % (k))
11771177
if case in ['optional', 'required', 'public', 'external', 'private', 'intrinsic']:
11781178
ap = case
11791179
if 'attrspec' in edecl[k]:
@@ -1868,11 +1868,11 @@ def get_useparameters(block, param_map=None):
18681868
continue
18691869
# XXX: apply mapping
18701870
if mapping:
1871-
errmess('get_useparameters: mapping for %s not impl.' % (mapping))
1871+
errmess('get_useparameters: mapping for %s not impl.\n' % (mapping))
18721872
for k, v in list(params.items()):
18731873
if k in param_map:
18741874
outmess('get_useparameters: overriding parameter %s with'
1875-
' value from module %s' % (repr(k), repr(usename)))
1875+
' value from module %s\n' % (repr(k), repr(usename)))
18761876
param_map[k] = v
18771877

18781878
return param_map
@@ -2385,7 +2385,7 @@ def get_parameters(vars, global_params={}):
23852385

23862386
elif iscomplex(vars[n]):
23872387
outmess(f'get_parameters[TODO]: '
2388-
f'implement evaluation of complex expression {v}')
2388+
f'implement evaluation of complex expression {v}\n')
23892389

23902390
try:
23912391
params[n] = eval(v, g_params, params)
@@ -2633,7 +2633,7 @@ def analyzevars(block):
26332633
vars[n]['intent'].append('c')
26342634
else:
26352635
errmess(
2636-
"analyzevars: charselector=%r unhandled." % (d))
2636+
"analyzevars: charselector=%r unhandled.\n" % (d))
26372637

26382638
if 'check' not in vars[n] and 'args' in block and n in block['args']:
26392639
# n is an argument that has no checks defined. Here we

numpy/f2py/f2py2e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def scaninputline(inputline):
286286
sys.exit()
287287
if not os.path.isdir(buildpath):
288288
if not verbose:
289-
outmess('Creating build directory %s' % (buildpath))
289+
outmess('Creating build directory %s\n' % (buildpath))
290290
os.mkdir(buildpath)
291291
if signsfile:
292292
signsfile = os.path.join(buildpath, signsfile)

0 commit comments

Comments
 (0)
0