Commit 23532243 authored by JackV's avatar JackV

Run 2to3 on codebase

parent da0a98ff
......@@ -7,7 +7,7 @@
#
"""Common elements needed by all modules."""
from itertools import izip_longest
from itertools import zip_longest
from tornado.netutil import bind_sockets, bind_unix_socket
from tornado.options import options
......@@ -25,7 +25,7 @@ def secure_compare(a, b):
Works in constant time to prevent timing attacks.
"""
return sum(1 for x, y in izip_longest(a, b) if x != y) == 0
return sum(1 for x, y in zip_longest(a, b) if x != y) == 0
def bind(server, port, usocket, address=None):
......
......@@ -13,7 +13,7 @@ Send BITS-miniprotocol notification messages to remote host.
import base64
from bitsd.persistence.models import Status
import handlers
from . import handlers
def send_message(text):
......
......@@ -90,7 +90,7 @@ def get_latest_data(session):
}
# Prune null attributes
return dict((key, value) for key, value in data.iteritems() if data[key])
return dict((key, value) for key, value in data.items() if data[key])
def get_last_login_attempt(session, ip_address, username=None):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment