summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cython/Compiler/Parsing.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py
index 2aafcb99a..1f20b4c95 100644
--- a/Cython/Compiler/Parsing.py
+++ b/Cython/Compiler/Parsing.py
@@ -1795,6 +1795,8 @@ def p_imported_name(s, is_cimport):
kind = None
if is_cimport and s.systring in imported_name_kinds:
kind = s.systring
+ warning(pos, 'the "from module cimport %s name" syntax is deprecated and '
+ 'will be removed in Cython 3.0' % kind, 2)
s.next()
name = p_ident(s)
as_name = p_as_name(s)