icecream icon indicating copy to clipboard operation
icecream copied to clipboard

disableColoring and enableColoring methods added to IceCreamDebugger closes#155

Open fanoway opened this issue 1 year ago • 0 comments

ic.disableColoring()
ic.enableColoring()

Based on this context manger taken from the unittests:

@contextmanager
def disableColoring():
    originalOutputFunction = ic.outputFunction

    ic.configureOutput(outputFunction=stderrPrint)
    yield
    ic.configureOutput(outputFunction=originalOutputFunction)

Note: I had to modify tox.ini and ci.yml to make the tests pass due to deprecated support for python 2.7

fanoway avatar Oct 07 '23 04:10 fanoway