Fix pyflakes issues.

This commit is contained in:
Itamar Turner-Trauring 2020-07-09 13:12:30 -04:00
parent 0469c15e5d
commit 12d5131568
3 changed files with 4 additions and 1 deletions

View File

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

View File

@ -19,3 +19,5 @@ if PY2:
# The API importers expect:
from pyutil.assertutil import _assert, precondition, postcondition
__all__ = ["_assert", "precondition", "postcondition"]

View File

@ -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"]