From 3e866e89effb909517a962ebc76bbd9e16ff5ab4 Mon Sep 17 00:00:00 2001 From: Haoyu Bai Date: Sat, 2 Apr 2011 08:00:41 +0800 Subject: [PATCH] set py2_import directive so imports in Cython source code not forced to absolute --- Cython/Compiler/Code.py | 2 +- Cython/Compiler/Lexicon.py | 2 +- Cython/Compiler/Parsing.py | 2 +- Cython/Compiler/Scanning.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 # -- 2.26.2