From eb1857fb3f099c34d4edf8eeda2d54b4bb30ce0b Mon Sep 17 00:00:00 2001
From: Robert Bradshaw <robertwb@math.washington.edu>
Date: Sat, 7 Jul 2007 02:01:00 -0700
Subject: [PATCH] Jim Kleckner patch to allow trailing commas in function
 argument lists

---
 Cython/Compiler/Parsing.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py
index d819ccebb..927c82806 100644
--- a/Cython/Compiler/Parsing.py
+++ b/Cython/Compiler/Parsing.py
@@ -1503,7 +1503,7 @@ def p_c_arg_list(s, in_pyfunc, cmethod_flag = 0):
         args.append(p_c_arg_decl(s, in_pyfunc, cmethod_flag))
         while s.sy == ',':
             s.next()
-            if s.sy in c_arg_list_trailers:
+            if s.sy in c_arg_list_terminators:
                 break
             args.append(p_c_arg_decl(s, in_pyfunc))
     return args
-- 
2.30.9