environment/lib/python2.7/site-packages/distribute-0.6.31-py2.7.egg/setuptools/sandbox.py
def run(self, func):
        """Run 'func' under os sandboxing"""
        try:
            self._copy(self)
            if _file:
                __builtin__.file = self._file
            __builtin__.open = self._open
            self._active = True
            return func()
        finally:
            self._active = False
            if _file:
                __builtin__.file = _file
            __builtin__.open = _open
            self._copy(_os)
def run(self, func):
        try:
            self._copy(self)
            if _file:
                __builtin__.file = self._file
            __builtin__.open = self._open
            self._active = True
            return func()
        finally:
            self._active = False
            if _file:
                __builtin__.file = _file
            __builtin__.open = _open
            self._copy(_os)
def run ( self , func ) : try : self . _copy ( self ) if _file : __builtin__ . file = self . _file __builtin__ . open = self . _open self . _active = True return func ( ) finally : self . _active = False if _file : __builtin__ . file = _file __builtin__ . open = _open self . _copy ( _os )
Run 'func' under os sandboxing
Run func under os sandboxing