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:
parent
231a7d8f77
commit
98c1301e23
@ -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'))
|
||||||
|
Loading…
Reference in New Issue
Block a user