From 56bcb46bb252e75c94935cbfdb0d0b1c24f929ee Mon Sep 17 00:00:00 2001 From: Peter Bittner Date: Sat, 23 Jan 2016 00:30:05 +0100 Subject: [PATCH] [GoSquared] Fix code smell "unused import" and flake8 complaints --- analytical/templatetags/gosquared.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/analytical/templatetags/gosquared.py b/analytical/templatetags/gosquared.py index b159d9c..72edf6c 100644 --- a/analytical/templatetags/gosquared.py +++ b/analytical/templatetags/gosquared.py @@ -6,10 +6,9 @@ from __future__ import absolute_import import re -from django.conf import settings from django.template import Library, Node, TemplateSyntaxError -from analytical.utils import get_identity, get_user_from_context, \ +from analytical.utils import get_identity, \ is_internal_ip, disable_html, get_required_setting @@ -51,7 +50,8 @@ def gosquared(parser, token): class GoSquaredNode(Node): def __init__(self): - self.site_token = get_required_setting('GOSQUARED_SITE_TOKEN', TOKEN_RE, + self.site_token = get_required_setting( + 'GOSQUARED_SITE_TOKEN', TOKEN_RE, "must be a string looking like XXX-XXXXXX-X") def render(self, context):