Commit 1d74aaab authored by Jason R. Coombs's avatar Jason R. Coombs

Always import for SandboxViolation so it's pickleable. Ref #440.

parent 3915be77
......@@ -384,6 +384,7 @@ class DirectorySandbox(AbstractSandbox):
AbstractSandbox.__init__(self)
def _violation(self, operation, *args, **kw):
from setuptools.sandbox import SandboxViolation
raise SandboxViolation(operation, args, kw)
if _file:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment