mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-11 23:42:38 +00:00
Fix lint.
This commit is contained in:
parent
ae29ea2b23
commit
29a66e5158
@ -1,19 +1,8 @@
|
|||||||
"""
|
"""
|
||||||
Ported to Python 3.
|
Ported to Python 3.
|
||||||
"""
|
"""
|
||||||
from __future__ import unicode_literals
|
|
||||||
from __future__ import absolute_import
|
|
||||||
from __future__ import division
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from future.utils import PY2, bchr
|
from future.utils import bchr
|
||||||
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
|
|
||||||
|
|
||||||
try:
|
|
||||||
from allmydata.scripts.types_ import SubCommands
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
import struct, time, os, sys
|
import struct, time, os, sys
|
||||||
|
|
||||||
@ -31,6 +20,7 @@ from allmydata.mutable.common import NeedMoreDataError
|
|||||||
from allmydata.immutable.layout import ReadBucketProxy
|
from allmydata.immutable.layout import ReadBucketProxy
|
||||||
from allmydata.util import base32
|
from allmydata.util import base32
|
||||||
from allmydata.util.encodingutil import quote_output
|
from allmydata.util.encodingutil import quote_output
|
||||||
|
from allmydata.scripts.types_ import SubCommands
|
||||||
|
|
||||||
class DumpOptions(BaseOptions):
|
class DumpOptions(BaseOptions):
|
||||||
def getSynopsis(self):
|
def getSynopsis(self):
|
||||||
@ -1076,9 +1066,9 @@ def do_debug(options):
|
|||||||
return f(so)
|
return f(so)
|
||||||
|
|
||||||
|
|
||||||
subCommands = [
|
subCommands : SubCommands = [
|
||||||
("debug", None, DebugCommand, "debug subcommands: use 'tahoe debug' for a list."),
|
("debug", None, DebugCommand, "debug subcommands: use 'tahoe debug' for a list."),
|
||||||
] # type: SubCommands
|
]
|
||||||
|
|
||||||
dispatch = {
|
dispatch = {
|
||||||
"debug": do_debug,
|
"debug": do_debug,
|
||||||
|
Loading…
Reference in New Issue
Block a user