8000 MAINT: Fix newlines in diagnostics output of numpy.f2py. by bilderbuchi · Pull Request #20369 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: Fix newlines in diagnostics output of numpy.f2py. #20369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion numpy/f2py/capi_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def getpydocsign(a, var):
sigout = sig
else:
errmess(
'getpydocsign: Could not resolve docsignature for "%s".\\n' % a)
'getpydocsign: Could not resolve docsignature for "%s".\n' % a)
return sig, sigout


Expand Down
12 changes: 6 additions & 6 deletions numpy/f2py/crackfortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,10 +1170,10 @@ def analyzeline(m, case, line):
groupcache[groupcounter]['args'].append(k)
else:
errmess(
'analyzeline: intent(callback) %s is ignored' % (k))
'analyzeline: intent(callback) %s is ignored\n' % (k))
else:
errmess('analyzeline: intent(callback) %s is already'
' in argument list' % (k))
' in argument list\n' % (k))
if case in ['optional', 'required', 'public', 'external', 'private', 'intrinsic']:
ap = case
if 'attrspec' in edecl[k]:
Expand Down Expand Up @@ -1868,11 +1868,11 @@ def get_useparameters(block, param_map=None):
continue
# XXX: apply mapping
if mapping:
errmess('get_useparameters: mapping for %s not impl.' % (mapping))
errmess('get_useparameters: mapping for %s not impl.\n' % (mapping))
for k, v in list(params.items()):
if k in param_map:
outmess('get_useparameters: overriding parameter %s with'
' value from module %s' % (repr(k), repr(usename)))
' value from module %s\n' % (repr(k), repr(usename)))
param_map[k] = v

return param_map
Expand Down Expand Up @@ -2385,7 +2385,7 @@ def get_parameters(vars, global_params={}):

elif iscomplex(vars[n]):
outmess(f'get_parameters[TODO]: '
f'implement evaluation of complex expression {v}')
f'implement evaluation of complex expression {v}\n')

try:
params[n] = eval(v, g_params, params)
Expand Down Expand Up @@ -2633,7 +2633,7 @@ def analyzevars(block):
vars[n]['intent'].append('c')
else:
errmess(
"analyzevars: charselector=%r unhandled." % (d))
"analyzevars: charselector=%r unhandled.\n" % (d))

if 'check' not in vars[n] and 'args' in block and n in block['args']:
# n is an argument that has no checks defined. Here we
Expand Down
2 changes: 1 addition & 1 deletion numpy/f2py/f2py2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def scaninputline(inputline):
sys.exit()
if not os.path.isdir(buildpath):
if not verbose:
outmess('Creating build directory %s' % (buildpath))
outmess('Creating build directory %s\n' % (buildpath))
os.mkdir(buildpath)
if signsfile:
signsfile = os.path.join(buildpath, signsfile)
Expand Down
0