Did I find the right examples for you? yes no

All Samples(50)  |  Call(50)  |  Derive(0)  |  Import(0)

        def removeHandler(method=None):
    if method is not None:
        @wraps(method)
        def inner(*args, **kwargs):
            initial = signal.getsignal(signal.SIGINT)
            removeHandler()
            try:
                return method(*args, **kwargs)
            finally:
                signal.signal(signal.SIGINT, initial)
        return inner

    global _interrupt_handler
    if _interrupt_handler is not None:
        signal.signal(signal.SIGINT, _interrupt_handler.original_handler)
        


src/h/u/hunch-sample-app-HEAD/django/test/simple.py   hunch-sample-app(Download)
    def teardown_test_environment(self, **kwargs):
        unittest.removeHandler()
        teardown_test_environment()
 
    def suite_result(self, suite, result, **kwargs):

src/d/j/django-discover-runner-1.0/discover_runner/runner.py   django-discover-runner(Download)
    def teardown_test_environment(self, **kwargs):
        unittest.removeHandler()
        teardown_test_environment()
 
    def suite_result(self, suite, result, **kwargs):

src/d/j/django-discover-runner-HEAD/discover_runner/runner.py   django-discover-runner(Download)
    def teardown_test_environment(self, **kwargs):
        unittest.removeHandler()
        teardown_test_environment()
 
    def suite_result(self, suite, result, **kwargs):

src/t/u/tubechaser-HEAD/website/TubeChaser/django/test/simple.py   tubechaser(Download)
    def teardown_test_environment(self, **kwargs):
        unittest.removeHandler()
        teardown_test_environment()
 
    def suite_result(self, suite, result, **kwargs):

src/t/r/triaquae-HEAD/TriAquae/models/django/test/simple.py   triaquae(Download)
    def teardown_test_environment(self, **kwargs):
        unittest.removeHandler()
        teardown_test_environment()
 
    def suite_result(self, suite, result, **kwargs):

src/s/p/splunk-webframework-HEAD/contrib/django/django/test/simple.py   splunk-webframework(Download)
    def teardown_test_environment(self, **kwargs):
        unittest.removeHandler()
        teardown_test_environment()
 
    def suite_result(self, suite, result, **kwargs):

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/django/test/simple.py   socorro(Download)
    def teardown_test_environment(self, **kwargs):
        unittest.removeHandler()
        teardown_test_environment()
 
    def suite_result(self, suite, result, **kwargs):

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/django/test/runner.py   rolf(Download)
    def teardown_test_environment(self, **kwargs):
        unittest.removeHandler()
        teardown_test_environment()
 
    def suite_result(self, suite, result, **kwargs):

src/m/o/Morsels-HEAD/django/test/simple.py   Morsels(Download)
    def teardown_test_environment(self, **kwargs):
        unittest.removeHandler()
        teardown_test_environment()
 
    def suite_result(self, suite, result, **kwargs):

src/o/h/oh-mainline-HEAD/vendor/packages/Django/django/test/simple.py   oh-mainline(Download)
    def teardown_test_environment(self, **kwargs):
        unittest.removeHandler()
        teardown_test_environment()
 
    def suite_result(self, suite, result, **kwargs):

  1 | 2 | 3 | 4 | 5  Next