]> granicus.if.org Git - python/commitdiff
fix for @decorators under a debug build.
authorAnthony Baxter <anthonybaxter@gmail.com>
Mon, 2 Aug 2004 11:08:15 +0000 (11:08 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Mon, 2 Aug 2004 11:08:15 +0000 (11:08 +0000)
Python/compile.c

index 337cc2ef02c0f3da1f22ce422554709c04c0b07e..0b5ba6cd3814723a49d6151ea9a1c5243bfe6607 100644 (file)
@@ -4025,6 +4025,7 @@ com_decorator_name(struct compiling *c, node *n)
        varname = CHILD(n, 0);
        REQ(varname, NAME);
        com_addop_varname(c, VAR_LOAD, STR(varname));
+       com_push(c, 1);
                
        for (i = 1; i < nch; i += 2) {
                node *attrname;