Silence parser generator output.
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 @@
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 @@
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);