From 2111318bd44d116ca90bdf3af84ece51ab93264f Mon Sep 17 00:00:00 2001 From: Stefan Behnel <stefan_ml@behnel.de> Date: Tue, 15 Nov 2011 21:46:15 +0100 Subject: [PATCH] minor cleanup: py2_import option is only useful in Py3 source mode --- Cython/Compiler/Code.py | 2 +- Cython/Compiler/Options.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 6aaeedb10..51ce26123 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -1,4 +1,4 @@ -# cython: language_level = 2, py2_import=True +# cython: language_level = 2 # # Code output module # diff --git a/Cython/Compiler/Options.py b/Cython/Compiler/Options.py index 86bda9ba6..1672d91c9 100644 --- a/Cython/Compiler/Options.py +++ b/Cython/Compiler/Options.py @@ -96,7 +96,7 @@ directive_defaults = { 'autotestdict.all': False, 'language_level': 2, 'fast_getattr': False, # Undocumented until we come up with a better way to handle this everywhere. - 'py2_import': False, # For backward compatibility of Cython's source code + 'py2_import': False, # For backward compatibility of Cython's source code in Py3 source mode 'warn': None, 'warn.undeclared': False, -- 2.30.9