def activate_stubs(self, connection):
        try:
            from google.appengine.tools import dev_appserver_main
            self.setup_local_stubs(connection)
        except __HOLE__:
            self.activate_test_stubs(connection)
dataset/ETHPy150Open django-nonrel/djangoappengine/djangoappengine/db/stubs.py/StubManager.activate_stubs