diff Python/ast.c @ 41509:26df566f80f0

Allow decorators and return annotations to be used together (fixes SF#1697248)
author Nick Coghlan <ncoghlan@gmail.com>
date Mon, 23 Apr 2007 11:05:01 +0000
parents a5e410639e24
children 06145fbc7ab9
line wrap: on
line diff
--- a/Python/ast.c	Mon Apr 23 10:14:27 2007 +0000
+++ b/Python/ast.c	Mon Apr 23 11:05:01 2007 +0000
@@ -983,7 +983,7 @@
 
     REQ(n, funcdef);
 
-    if (NCH(n) == 6) { /* decorators are present */
+    if (NCH(n) == 6 || NCH(n) == 8) { /* decorators are present */
         decorator_seq = ast_for_decorators(c, CHILD(n, 0));
         if (!decorator_seq)
             return NULL;