]> granicus.if.org Git - python/commitdiff
Fix dumb bug calling parsestrplus with wrong node as argument.
authorGuido van Rossum <guido@python.org>
Tue, 11 Mar 1997 21:25:55 +0000 (21:25 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 11 Mar 1997 21:25:55 +0000 (21:25 +0000)
Add prototypes for parsestr() and parsestrplus() (unrelated, but
seemed to make sense.)

Python/compile.c

index 36c78aa801bb73dfab27899625c645e84ee11983..9f7d1f84019f421add9e1d16a6c3ff4d2b0cf614 100644 (file)
@@ -383,6 +383,8 @@ static int com_argdefs PROTO((struct compiling *, node *));
 static int com_newlocal PROTO((struct compiling *, char *));
 static codeobject *icompile PROTO((struct _node *, struct compiling *));
 static codeobject *jcompile PROTO((struct _node *, char *, struct compiling *));
+static object *parsestrplus PROTO((node *));
+static object *parsestr PROTO((char *));
 
 static int
 com_init(c, filename)
@@ -2242,7 +2244,7 @@ is_constant_false(c, n)
                return i == 0;
 
        case STRING:
-               v = parsestrplus(n);
+               v = parsestr(STR(n));
                if (v == NULL) {
                        err_clear();
                        break;