summaryrefslogtreecommitdiffstats
path: root/Parser/pgenmain.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-11 16:43:16 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-11 16:43:16 (GMT)
commit25dfe2c09599228d57941a8cf8c0040670f389fd (patch)
treec632168d0be61192d5b760419fdf815794797d77 /Parser/pgenmain.c
parent2732cb42694251f3c0dd38a115c2fce84bc5c931 (diff)
downloadcpython-25dfe2c09599228d57941a8cf8c0040670f389fd.zip
cpython-25dfe2c09599228d57941a8cf8c0040670f389fd.tar.gz
cpython-25dfe2c09599228d57941a8cf8c0040670f389fd.tar.bz2
Silence parser generator output.
Diffstat (limited to 'Parser/pgenmain.c')
-rw-r--r--Parser/pgenmain.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Parser/pgenmain.c b/Parser/pgenmain.c
index 32fb956..2a284bc 100644
--- a/Parser/pgenmain.c
+++ b/Parser/pgenmain.c
@@ -62,7 +62,8 @@ main(int argc, char **argv)
perror(graminit_c);
Py_Exit(1);
}
- printf("Writing %s ...\n", graminit_c);
+ if (Py_DebugFlag)
+ printf("Writing %s ...\n", graminit_c);
printgrammar(g, fp);
fclose(fp);
fp = fopen(graminit_h, "w");
@@ -70,7 +71,8 @@ main(int argc, char **argv)
perror(graminit_h);
Py_Exit(1);
}
- printf("Writing %s ...\n", graminit_h);
+ if (Py_DebugFlag)
+ printf("Writing %s ...\n", graminit_h);
printnonterminals(g, fp);
fclose(fp);
Py_Exit(0);