mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 23:37:39 -02:30
Clean up flake8 related issues
This commit is contained in:
@@ -10,7 +10,6 @@ import urlparse
|
|||||||
# Django
|
# Django
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.db.models import Q
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from django.utils.encoding import smart_str, smart_text
|
from django.utils.encoding import smart_str, smart_text
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ from djcelery.models import TaskMeta
|
|||||||
# AWX
|
# AWX
|
||||||
from awx.main.models.base import * # noqa
|
from awx.main.models.base import * # noqa
|
||||||
from awx.main.models.schedules import Schedule
|
from awx.main.models.schedules import Schedule
|
||||||
from awx.main.models.notifications import Notification
|
|
||||||
from awx.main.utils import decrypt_field, emit_websocket_notification, _inventory_updates
|
from awx.main.utils import decrypt_field, emit_websocket_notification, _inventory_updates
|
||||||
from awx.main.redact import UriCleaner
|
from awx.main.redact import UriCleaner
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Copyright (c) 2016 Ansible, Inc.
|
# Copyright (c) 2016 Ansible, Inc.
|
||||||
# All Rights Reserved.
|
# All Rights Reserved.
|
||||||
|
|
||||||
import logging
|
import pprint
|
||||||
|
|
||||||
from django.utils.encoding import smart_text
|
from django.utils.encoding import smart_text
|
||||||
from django.core.mail.backends.smtp import EmailBackend
|
from django.core.mail.backends.smtp import EmailBackend
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class IrcBackend(TowerBaseEmailBackend):
|
|||||||
self.connection.add_global_handler("join", self.on_join)
|
self.connection.add_global_handler("join", self.on_join)
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
process_time = time.time()
|
process_time = time.time()
|
||||||
while self.channels_sent < len(self.channels) and (process_time-start_time) < 60:
|
while self.channels_sent < len(self.channels) and (process_time - start_time) < 60:
|
||||||
self.reactor.process_once(0.1)
|
self.reactor.process_once(0.1)
|
||||||
process_time = time.time()
|
process_time = time.time()
|
||||||
self.reactor.disconnect_all()
|
self.reactor.disconnect_all()
|
||||||
|
|||||||
Reference in New Issue
Block a user