Did I find the right examples for you? yes no

All Samples(9)  |  Call(4)  |  Derive(0)  |  Import(5)

src/e/l/eliot-0.3.0/eliot/_output.py   eliot(Download)
from zope.interface import Interface, implementer
 
from ._traceback import writeTraceback, TRACEBACK_MESSAGE
from ._message import Message
from ._util import saferepr
            self._destinations.send(json.dumps(dictionary))
        except:
            writeTraceback(self, "eliot:output")
            msg = Message({"message_type": "eliot:serialization_failure",
                           "message": self._safeUnicodeDictionary(dictionary)})

src/e/l/eliot-0.3.0/eliot/__init__.py   eliot(Download)
from ._output import ILogger, Logger, MemoryLogger
from ._validation import Field, MessageType, ActionType
from ._traceback import writeTraceback, writeFailure
addDestination = Logger._destinations.add
removeDestination = Logger._destinations.remove

src/e/l/eliot-0.3.0/eliot/tests/test_traceback.py   eliot(Download)
    Failure = None
 
from .._traceback import writeTraceback, writeFailure, _writeTracebackMessage
from ..testing import assertContainsFields, validateLogging
 
        except Exception as e:
            expectedTraceback = traceback.format_exc()
            writeTraceback(logger, "some:system")
        lines = expectedTraceback.split("\n")
        # Remove source code lines:

src/e/l/eliot-0.3.0/eliot/tests/test_testing.py   eliot(Download)
from .._message import Message
from .._validation import ActionType, MessageType, ValidationError, Field
from .._traceback import writeTraceback
 
 
            def runTest(self, logger):
                try:
                    1 / 0
                except ZeroDivisionError:
                    writeTraceback(logger, "atest")
                    1 / 0
                except ZeroDivisionError:
                    writeTraceback(logger, "atest")
        test = MyTest()
        test.debug()

src/e/l/eliot-0.3.0/eliot/tests/test_output.py   eliot(Download)
    )
from .._validation import ValidationError, Field, _MessageSerializer
from .._traceback import writeTraceback
from ..testing import assertContainsFields