diff options
author | Yuri Escalianti <yuriescl@gmail.com> | 2020-01-13 07:29:51 -0300 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-01-13 11:29:51 +0100 |
commit | 90ca446a4be3de59592feef57c53557df3cf32e2 (patch) | |
tree | 1ef7c4a2d2e993e30a8ed32c899b57fdbccb6814 /Cython/Compiler/ModuleNode.py | |
parent | 7c20e319a979657558d809ffd179064679ce46e2 (diff) | |
download | cython-90ca446a4be3de59592feef57c53557df3cf32e2.tar.gz |
#2740 emit_code_comments - removed from options, updated documentation (GH-3236)
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 81627212f..cda05c19b 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -63,6 +63,10 @@ def generate_c_code_config(env, options): else: emit_linenums = options.emit_linenums + if hasattr(options, "emit_code_comments"): + print('Warning: option emit_code_comments is deprecated. ' + 'Instead, use compiler directive emit_code_comments.') + return Code.CCodeConfig( emit_linenums=emit_linenums, emit_code_comments=env.directives['emit_code_comments'], |