Open dmwyatt opened 9 years ago
Having trouble figuring out how exactly you instantiate these things. Would you mind sharing the code?
Can this be done without recompiling the package? Really like this parser but can't use if it's spitting out all these warnings.
def quiet(*args, **kwargs):
pass
from ply import yacc, lex
yacc.PlyLogger.warning = quiet
lex.PlyLogger.warning = quiet
ply spews some Warnings to stderr even if you have debug=False.
if you instantiate
ply.lex.lex
andply.yacc.yacc
witherrorlog=ply.lex.NullLogger()
you can suppress these warnings.Optionally make this configurable.