From 2447d09fc0f7088492d9b1d53deca46e73818b5e Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Mon, 14 Jun 2021 11:58:48 -0400 Subject: [PATCH] Port to Python 3. --- src/allmydata/frontends/auth.py | 12 ++++++++++++ src/allmydata/util/_python3.py | 1 + 2 files changed, 13 insertions(+) diff --git a/src/allmydata/frontends/auth.py b/src/allmydata/frontends/auth.py index 376cdebe4..b61062334 100644 --- a/src/allmydata/frontends/auth.py +++ b/src/allmydata/frontends/auth.py @@ -1,3 +1,15 @@ +""" +Authentication for frontends. +""" +from __future__ import unicode_literals +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function + +from future.utils import PY2 +if PY2: + from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F401 + from zope.interface import implementer from twisted.internet import defer from twisted.cred import error, checkers, credentials diff --git a/src/allmydata/util/_python3.py b/src/allmydata/util/_python3.py index 5e06c2c01..8025582f2 100644 --- a/src/allmydata/util/_python3.py +++ b/src/allmydata/util/_python3.py @@ -52,6 +52,7 @@ PORTED_MODULES = [ "allmydata.deep_stats", "allmydata.dirnode", "allmydata.frontends", + "allmydata.frontends.auth", "allmydata.frontends.sftpd", "allmydata.hashtree", "allmydata.history",