From e3bb34ec24f13dc934bc4a8e8ac1ce4c10eb3254 Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Tue, 13 Jan 2015 03:03:14 +0100 Subject: [PATCH] Added missing import. As this specific code block lists imports in general and an import from the `flask` package specifically, it should also include `g` for the sake of completeness. --- docs/testing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/testing.rst b/docs/testing.rst index 5720b84d..2e071a6b 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -276,7 +276,7 @@ having to change some code. This can trivially be accomplished with hooking the :data:`flask.appcontext_pushed` signal:: from contextlib import contextmanager - from flask import appcontext_pushed + from flask import appcontext_pushed, g @contextmanager def user_set(app, user):