capybara/virtualenv/lib/python2.7/site-packages/setuptools/sandbox.py
def dump(cls, type, exc):
        """
        Always return a dumped (pickled) type and exc. If exc can't be pickled,
        wrap it in UnpickleableException first.
        """
        try:
            return pickle.dumps(type), pickle.dumps(exc)
        except Exception:
            return cls.dump(cls, cls(repr(exc)))
def dump(cls, type, exc):
        """
        Always return a dumped (pickled) type and exc. If exc can't be pickled,
        wrap it in UnpickleableException first.
        """
        try:
            return pickle.dumps(type), pickle.dumps(exc)
        except Exception:
            return cls.dump(cls, cls(repr(exc)))
Always return a dumped (pickled) type and exc. If exc can't be pickled,
        wrap it in UnpickleableException first.