Commit 7603976e authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Rename unknown_directives.

parent bbfaa7e3
...@@ -560,11 +560,11 @@ class CompilationOptions(object): ...@@ -560,11 +560,11 @@ class CompilationOptions(object):
directives = dict(options['compiler_directives']) # copy mutable field directives = dict(options['compiler_directives']) # copy mutable field
# check for invalid directives # check for invalid directives
unknown_options = set(directives) - set(Options.get_directive_defaults()) unknown_directives = set(directives) - set(Options.get_directive_defaults())
if unknown_options: if unknown_directives:
message = "got unknown compiler directive%s: %s" % ( message = "got unknown compiler directive%s: %s" % (
's' if len(unknown_options) > 1 else '', 's' if len(unknown_directives) > 1 else '',
', '.join(unknown_options)) ', '.join(unknown_directives))
raise ValueError(message) raise ValueError(message)
options['compiler_directives'] = directives options['compiler_directives'] = directives
if directives.get('np_pythran', False) and not options['cplus']: if directives.get('np_pythran', False) and not options['cplus']:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment