Did I find the right examples for you? yes no

All Samples(20)  |  Call(10)  |  Derive(0)  |  Import(10)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/driver.py   plexnet(Download)
        backend, ts = driver.get_backend_and_type_system()
        if backend in ('cli', 'jvm'):
            from pypy.translator.oosupport.support import patch_os
            driver.old_cli_defs = patch_os()
 

src/s/y/Sypy-HEAD/translator/driver.py   Sypy(Download)
        backend, ts = driver.get_backend_and_type_system()
        if backend in ('cli', 'jvm'):
            from pypy.translator.oosupport.support import patch_os
            driver.old_cli_defs = patch_os()
 

src/s/y/Sypy-HEAD/translator/oosupport/test_template/runtest.py   Sypy(Download)
    def test_patch_os(self):
        import os
        from pypy.translator.oosupport.support import patch_os, unpatch_os, NT_OS
        original_O_CREAT = os.O_CREAT
        olddefs = patch_os()

src/s/y/Sypy-HEAD/translator/jvm/test/runtest.py   Sypy(Download)
from pypy.annotation.model import lltype_to_annotation
from pypy.translator.translator import TranslationContext
from pypy.translator.oosupport.support import patch_os, unpatch_os
from pypy.translator.jvm.genjvm import \
     generate_source_for_function, JvmError, detect_missing_support_programs
            self._func = fn
            self._ann = ann
            olddefs = patch_os()
            self._jvm_src = generate_source_for_function(fn, ann, backendopt)
            unpatch_os(olddefs)

src/s/y/Sypy-HEAD/translator/cli/test/runtest.py   Sypy(Download)
from pypy.translator.cli.sdk import SDK
from pypy.translator.cli.entrypoint import BaseEntryPoint
from pypy.translator.oosupport.support import patch_os, unpatch_os
 
 
def compile_function(func, annotation=[], graph=None, backendopt=True,
                     auto_raise_exc=False, exctrans=False,
                     annotatorpolicy=None, nowrap=False):
    olddefs = patch_os()
    gen = _build_gen(func, annotation, graph, backendopt, exctrans, annotatorpolicy, nowrap)

src/s/y/Sypy-HEAD/jit/backend/test/support.py   Sypy(Download)
    def pre_translation_hook(self):
        from pypy.translator.oosupport.support import patch_os
        self.olddefs = patch_os()
 
    def post_translation_hook(self):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/oosupport/test_template/runtest.py   plexnet(Download)
    def test_patch_os(self):
        import os
        from pypy.translator.oosupport.support import patch_os, unpatch_os, NT_OS
        original_O_CREAT = os.O_CREAT
        olddefs = patch_os()

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/jvm/test/runtest.py   plexnet(Download)
from pypy.annotation.model import lltype_to_annotation
from pypy.translator.translator import TranslationContext
from pypy.translator.oosupport.support import patch_os, unpatch_os
from pypy.translator.jvm.genjvm import \
     generate_source_for_function, JvmError, detect_missing_support_programs
            self._func = fn
            self._ann = ann
            olddefs = patch_os()
            self._jvm_src = generate_source_for_function(fn, ann, backendopt)
            unpatch_os(olddefs)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/cli/test/runtest.py   plexnet(Download)
from pypy.translator.cli.sdk import SDK
from pypy.translator.cli.entrypoint import BaseEntryPoint
from pypy.translator.oosupport.support import patch_os, unpatch_os
 
 
def compile_function(func, annotation=[], graph=None, backendopt=True,
                     auto_raise_exc=False, exctrans=False,
                     annotatorpolicy=None, nowrap=False):
    olddefs = patch_os()
    gen = _build_gen(func, annotation, graph, backendopt, exctrans, annotatorpolicy, nowrap)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/test/support.py   plexnet(Download)
    def pre_translation_hook(self):
        from pypy.translator.oosupport.support import patch_os
        self.olddefs = patch_os()
 
    def post_translation_hook(self):