From 2d922db85329267ef7e598fea0ff867bcffbe454 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 9 Feb 2016 15:30:06 +0000 Subject: [PATCH] Fix pyflakes warnings. Signed-off-by: Daira Hopwood --- src/allmydata/immutable/filenode.py | 6 +++--- src/allmydata/scripts/magic_folder_cli.py | 3 +-- src/allmydata/web/magic_folder.py | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/allmydata/immutable/filenode.py b/src/allmydata/immutable/filenode.py index 77997767..e00e69c9 100644 --- a/src/allmydata/immutable/filenode.py +++ b/src/allmydata/immutable/filenode.py @@ -1,14 +1,14 @@ import binascii -import time -now = time.time +from time import time as now + from zope.interface import implements from twisted.internet import defer from allmydata import uri from twisted.internet.interfaces import IConsumer from allmydata.interfaces import IImmutableFileNode, IUploadResults -from allmydata.util import consumer, progress +from allmydata.util import consumer from allmydata.check_results import CheckResults, CheckAndRepairResults from allmydata.util.dictutil import DictOfSets from allmydata.util.happinessutil import servers_of_happiness diff --git a/src/allmydata/scripts/magic_folder_cli.py b/src/allmydata/scripts/magic_folder_cli.py index cf17cdf4..97bdcd7b 100644 --- a/src/allmydata/scripts/magic_folder_cli.py +++ b/src/allmydata/scripts/magic_folder_cli.py @@ -17,8 +17,7 @@ from .cli import MakeDirectoryOptions, LnOptions, CreateAliasOptions import tahoe_mv from allmydata.util.encodingutil import argv_to_abspath, argv_to_unicode, to_str, \ quote_local_unicode_path -from allmydata.scripts.common_http import do_http, format_http_success, \ - format_http_error, BadResponse +from allmydata.scripts.common_http import do_http, BadResponse from allmydata.util import fileutil from allmydata.util import configutil from allmydata import uri diff --git a/src/allmydata/web/magic_folder.py b/src/allmydata/web/magic_folder.py index bf72cc39..bfd4839d 100644 --- a/src/allmydata/web/magic_folder.py +++ b/src/allmydata/web/magic_folder.py @@ -2,10 +2,10 @@ import simplejson from twisted.web.server import UnsupportedMethod -from nevow import rend, url, tags as T +from nevow import rend from nevow.inevow import IRequest -from allmydata.web.common import getxmlfile, get_arg, WebError +from allmydata.web.common import get_arg, WebError class MagicFolderWebApi(rend.Page): -- 2.45.2