1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Clean up some flake8 issues

This commit is contained in:
Matthew Jones 2015-10-12 14:18:02 -04:00
parent 231a7d8f77
commit 98c1301e23

View File

@ -2,9 +2,7 @@
# All Rights Reserved. # All Rights Reserved.
# Python # Python
import datetime
import logging import logging
from optparse import make_option
# Django # Django
from django.db import transaction from django.db import transaction
@ -22,8 +20,6 @@ class Command(BaseCommand):
help = 'Cleanup expired auth tokens.' help = 'Cleanup expired auth tokens.'
def init_logging(self): def init_logging(self):
log_levels = dict(enumerate([logging.ERROR, logging.INFO,
logging.DEBUG, 0]))
self.logger = logging.getLogger('awx.main.commands.cleanup_authtokens') self.logger = logging.getLogger('awx.main.commands.cleanup_authtokens')
handler = logging.StreamHandler() handler = logging.StreamHandler()
handler.setFormatter(logging.Formatter('%(message)s')) handler.setFormatter(logging.Formatter('%(message)s'))