*Not documented*
def setconsumer(keywords, consumer):
origin:<UNKNOWN>
where:
function source:
def setconsumer(keywords, consumer):
# normalize to tuples
if isinstance(keywords, str):
keywords = tuple(map(None, keywords.split()))
elif hasattr(keywords, 'keywords'):
keywords = keywords.keywords
elif not isinstance(keywords, tuple):
raise TypeError("key %r is not a string or tuple" % (keywords,))
if consumer is not None and not callable(consumer):
if not hasattr(consumer, 'write'):
raise TypeError("%r should be None, callable or file-like" % (consumer,))
consumer = File(consumer)
py.log.Producer(keywords).set_consumer(consumer)
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/pypy-dist/pypy/rpython/rmodel.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/pypy-dist/pypy/translator/c/support.py
called in /home/johnny/projects/merlinux/pypy-dist/pypy/rpython/rmodel.py
called in /home/johnny/projects/merlinux/pypy-dist/pypy/translator/tool/cbuild.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/pypy-dist/pypy/rpython/rmodel.py
called in /home/johnny/projects/merlinux/pypy-dist/pypy/translator/backendopt/support.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py
called in /home/johnny/projects/merlinux/py/dist/py/log/testing/test_log.py