From 10849f5ce0a3b5363f530c315ed6fe3ca5ec2615 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sun, 1 Mar 2009 03:06:24 -0800 Subject: [PATCH] change syntax for Cython's pxd --- Cython/Compiler/Scanning.pxd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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) -- 2.26.2