From: Robert Bradshaw Date: Sun, 1 Mar 2009 11:06:24 +0000 (-0800) Subject: change syntax for Cython's pxd X-Git-Tag: 0.11.rc~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=10849f5ce0a3b5363f530c315ed6fe3ca5ec2615;p=cython.git change syntax for Cython's pxd --- diff --git a/Cython/Compiler/Scanning.pxd b/Cython/Compiler/Scanning.pxd index 9850562d..280a3cfd 100644 --- a/Cython/Compiler/Scanning.pxd +++ b/Cython/Compiler/Scanning.pxd @@ -1,3 +1,5 @@ +import cython + from Cython.Plex.Scanners cimport Scanner cdef class CompileTimeScope: @@ -23,8 +25,5 @@ cdef class PyrexScanner(Scanner): cpdef next(self) cpdef bint expect(self, what, message = *) except -2 - cpdef indentation_action(self, text): - cdef: - long current_level - long new_level - + @cython.locals(current_level=long, new_level=long) + cpdef indentation_action(self, text)