alex / rply

An attempt to port David Beazley's PLY to RPython, and give it a cooler API.
BSD 3-Clause "New" or "Revised" License
381 stars 60 forks source link

How can i suppress warning? #92

Closed riccardobucco closed 5 years ago

riccardobucco commented 5 years ago

Hi How can i remove the ParserGeneratorWarning that appears when a Toke is unused?

alex commented 5 years ago

The warnings are emitted with the stdlib warnings module. You can silence them with standard warnings filters: https://docs.python.org/3/library/warnings.html#the-warnings-filter