From 12d5131568fece49852b1792bbbea4a9a9faca17 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Thu, 9 Jul 2020 13:12:30 -0400 Subject: [PATCH] Fix pyflakes issues. --- src/allmydata/test/test_util.py | 2 +- src/allmydata/util/assertutil.py | 2 ++ src/allmydata/util/mathutil.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/allmydata/test/test_util.py b/src/allmydata/test/test_util.py index f2e89af28..14d9f5dd7 100644 --- a/src/allmydata/test/test_util.py +++ b/src/allmydata/test/test_util.py @@ -15,7 +15,7 @@ from twisted.python.failure import Failure from twisted.python import log from allmydata.util import base32, idlib, mathutil, hashutil -from allmydata.util import assertutil, fileutil, deferredutil, abbreviate +from allmydata.util import fileutil, deferredutil, abbreviate from allmydata.util import limiter, time_format, pollmixin from allmydata.util import statistics, dictutil, pipeline, yamlutil from allmydata.util import log as tahoe_log diff --git a/src/allmydata/util/assertutil.py b/src/allmydata/util/assertutil.py index 21fae0411..af8817702 100644 --- a/src/allmydata/util/assertutil.py +++ b/src/allmydata/util/assertutil.py @@ -19,3 +19,5 @@ if PY2: # The API importers expect: from pyutil.assertutil import _assert, precondition, postcondition + +__all__ = ["_assert", "precondition", "postcondition"] diff --git a/src/allmydata/util/mathutil.py b/src/allmydata/util/mathutil.py index b518c3591..be88f60b4 100644 --- a/src/allmydata/util/mathutil.py +++ b/src/allmydata/util/mathutil.py @@ -25,3 +25,4 @@ def round_sigfigs(f, n): fmt = "%." + str(n-1) + "e" return float(fmt % f) +__all__ = ["div_ceil", "next_multiple", "pad_size", "is_power_of_k", "next_power_of_k", "ave", "log_ceil", "log_floor", "round_sigfigs"]