Clean up flake8 related issues

This commit is contained in:
Matthew Jones
2016-02-23 15:30:07 -05:00
parent 4b1493f456
commit 41d5393af0
6 changed files with 4 additions and 6 deletions

View File

@@ -10,7 +10,6 @@ import urlparse
# Django
from django.conf import settings
from django.db import models
from django.db.models import Q
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import smart_str, smart_text
from django.core.exceptions import ValidationError

View File

@@ -30,7 +30,6 @@ from djcelery.models import TaskMeta
# AWX
from awx.main.models.base import * # noqa
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.redact import UriCleaner

View File

@@ -1,7 +1,7 @@
# Copyright (c) 2016 Ansible, Inc.
# All Rights Reserved.
import logging
import pprint
from django.utils.encoding import smart_text
from django.core.mail.backends.smtp import EmailBackend

View File

@@ -88,7 +88,7 @@ class IrcBackend(TowerBaseEmailBackend):
self.connection.add_global_handler("join", self.on_join)
start_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)
process_time = time.time()
self.reactor.disconnect_all()