dgs.utils.utils.HidePrint

class dgs.utils.utils.HidePrint[source]

Safely disable printing for a block of code.

Source: https://stackoverflow.com/questions/8391411/how-to-block-calls-to-print/45669280#45669280

Examples

>>> with HidePrint():
...     print("Hello")
... print("Bye")
Bye
__init__()

Methods