diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-03-20 10:37:01 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-03-20 10:37:01 +0100 |
commit | fd2c05e0fb4ce66a478676aa3e72f93b3d600d1b (patch) | |
tree | 066acecbe2f57e18d8ba1f1fb1c34d6e39d58c33 | |
parent | 58c92bb623ce5f0e72e2f12bacf95f3e20472920 (diff) | |
download | cython-fd2c05e0fb4ce66a478676aa3e72f93b3d600d1b.tar.gz |
show an error when "language_level" directive is used anywhere below the module scope
-rw-r--r-- | Cython/Compiler/Options.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Cython/Compiler/Options.py b/Cython/Compiler/Options.py index cfee27e3f..811c07ff0 100644 --- a/Cython/Compiler/Options.py +++ b/Cython/Compiler/Options.py @@ -244,6 +244,7 @@ directive_scopes = { # defaults to available everywhere 'c_string_type': ('module',), 'c_string_encoding': ('module',), 'type_version_tag': ('module', 'cclass'), + 'language_level': ('module',), } def parse_directive_value(name, value, relaxed_bool=False): |