capybara/virtualenv/lib/python2.7/site-packages/flask/app.py
def try_trigger_before_first_request_functions(self):
        """Called before each request and will ensure that it triggers
        the :attr:`before_first_request_funcs` and only exactly once per
        application instance (which means process usually).

        :internal:
        """
        if self._got_first_request:
            return
        with self._before_request_lock:
            if self._got_first_request:
                return
            self._got_first_request = True
            for func in self.before_first_request_funcs:
                func()
def try_trigger_before_first_request_functions(self):
        """Called before each request and will ensure that it triggers
        the :attr:`before_first_request_funcs` and only exactly once per
        application instance (which means process usually).

        :internal:
        """
        if self._got_first_request:
            return
        with self._before_request_lock:
            if self._got_first_request:
                return
            self._got_first_request = True
            for func in self.before_first_request_funcs:
                func()
def try_trigger_before_first_request_functions ( self ) : if self . _got_first_request : return with self . _before_request_lock : if self . _got_first_request : return self . _got_first_request = True for func in self . before_first_request_funcs : func ( )
Called before each request and will ensure that it triggers
        the :attr:`before_first_request_funcs` and only exactly once per
        application instance (which means process usually).

        :internal:
Called before each request and will ensure that it triggers the : attr : before_first_request_funcs and only exactly once per application instance ( which means process usually ) .