From 83e6c7591a6070067b5f7f1269ec5e685e9d7ad1 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 24 Oct 2007 23:55:04 -0700 Subject: [PATCH] rdef -> cpdef --- Cython/Compiler/Parsing.py | 4 ++-- Cython/Compiler/Scanning.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index b76e520f..86cc03f1 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -1311,7 +1311,7 @@ def p_statement(s, level, cdef_flag = 0, visibility = 'private', api = 0): if s.sy == 'cdef': cdef_flag = 1 s.next() - if s.sy == 'rdef': + if s.sy == 'cpdef': cdef_flag = 1 overridable = 1 s.next() @@ -1320,7 +1320,7 @@ def p_statement(s, level, cdef_flag = 0, visibility = 'private', api = 0): s.error('cdef statement not allowed here') return p_cdef_statement(s, level, visibility = visibility, api = api, overridable = overridable) - # elif s.sy == 'rdef': + # elif s.sy == 'cpdef': # s.next() # return p_c_func_or_var_declaration(s, level, s.position(), visibility = visibility, api = api, overridable = True) else: diff --git a/Cython/Compiler/Scanning.py b/Cython/Compiler/Scanning.py index 821f661d..ea2970b5 100644 --- a/Cython/Compiler/Scanning.py +++ b/Cython/Compiler/Scanning.py @@ -139,7 +139,7 @@ reserved_words = [ "raise", "import", "exec", "try", "except", "finally", "while", "if", "elif", "else", "for", "in", "assert", "and", "or", "not", "is", "in", "lambda", "from", - "NULL", "cimport", "by", "with", "rdef", "DEF", "IF", "ELIF", "ELSE" + "NULL", "cimport", "by", "with", "cpdef", "DEF", "IF", "ELIF", "ELSE" ] class Method: -- 2.26.2