mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 22:35:08 -02:30
Cleaning up some flake8 errors, pyflakes in this case
This commit is contained in:
@@ -10,6 +10,7 @@ try:
|
||||
except ImportError:
|
||||
from django.utils.html import conditional_escape
|
||||
from django.utils.safestring import mark_safe
|
||||
|
||||
def format_html(format_string, *args, **kwargs):
|
||||
args_safe = map(conditional_escape, args)
|
||||
kwargs_safe = dict([(k, conditional_escape(v)) for (k, v) in
|
||||
@@ -21,11 +22,12 @@ try:
|
||||
except ImportError:
|
||||
import logging
|
||||
from django.conf import settings
|
||||
|
||||
class RequireDebugTrue(logging.Filter):
|
||||
def filter(self, record):
|
||||
return settings.DEBUG
|
||||
|
||||
try:
|
||||
from django.utils.text import slugify
|
||||
from django.utils.text import slugify # noqa
|
||||
except ImportError:
|
||||
from django.template.defaultfilters import slugify
|
||||
from django.template.defaultfilters import slugify # noqa
|
||||
|
||||
Reference in New Issue
Block a user