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

@@ -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()