From: Haoyu Bai Date: Sat, 2 Apr 2011 00:00:41 +0000 (+0800) Subject: set py2_import directive so imports in Cython source code not forced to absolute X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=95916a23ebce7a0bb246543c7920cd6d516d5696;p=cython.git set py2_import directive so imports in Cython source code not forced to absolute --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index c70318a2..84775391 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -1,4 +1,4 @@ -# cython: language_level = 3 +# cython: language_level = 3, py2_import=True # # Pyrex - Code output module # diff --git a/Cython/Compiler/Lexicon.py b/Cython/Compiler/Lexicon.py index ad736df1..35843851 100644 --- a/Cython/Compiler/Lexicon.py +++ b/Cython/Compiler/Lexicon.py @@ -1,4 +1,4 @@ -# cython: language_level=3 +# cython: language_level=3, py2_import=True # # Cython Scanner - Lexical Definitions # diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 6aab2f84..7490e15d 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -1,4 +1,4 @@ -# cython: auto_cpdef=True, infer_types=True, language_level=3 +# cython: auto_cpdef=True, infer_types=True, language_level=3, py2_import=True # # Pyrex Parser # diff --git a/Cython/Compiler/Scanning.py b/Cython/Compiler/Scanning.py index 608bcb15..2a79d945 100644 --- a/Cython/Compiler/Scanning.py +++ b/Cython/Compiler/Scanning.py @@ -1,4 +1,4 @@ -# cython: infer_types=True, language_level=3 +# cython: infer_types=True, language_level=3, py2_import=True # # Cython Scanner #