Changeset e1839ff3 in trunk


Ignore:
Timestamp:
2023-03-24T15:45:56Z (2 years ago)
Author:
Itamar Turner-Trauring <itamar@…>
Branches:
master
Children:
0cd197d
Parents:
76ecdfb7
Message:

Fix lints.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/scripts/cli.py

    r76ecdfb7 re1839ff3  
    22Ported to Python 3.
    33"""
    4 from __future__ import unicode_literals
    5 from __future__ import absolute_import
    6 from __future__ import division
    7 from __future__ import print_function
    8 
    9 from future.utils import PY2
    10 if PY2:
    11     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
    12 
    134
    145import os.path, re, fnmatch
    156
    16 try:
    17     from allmydata.scripts.types_ import SubCommands, Parameters
    18 except ImportError:
    19     pass
     7from allmydata.scripts.types_ import SubCommands, Parameters
    208
    219from twisted.python import usage
     
    3018
    3119class FileStoreOptions(BaseOptions):
    32     optParameters = [
     20    optParameters : Parameters = [
    3321        ["node-url", "u", None,
    3422         "Specify the URL of the Tahoe gateway node, such as "
     
    3725        ["dir-cap", None, None,
    3826         "Specify which dirnode URI should be used as the 'tahoe' alias."]
    39         ]  # type: Parameters
     27        ]
    4028
    4129    def postOptions(self):
     
    485473    Optionally repair any problems found."""
    486474
    487 subCommands = [
     475subCommands : SubCommands = [
    488476    ("mkdir", None, MakeDirectoryOptions, "Create a new directory."),
    489477    ("add-alias", None, AddAliasOptions, "Add a new alias cap."),
     
    504492    ("deep-check", None, DeepCheckOptions, "Check all files/directories reachable from a starting point."),
    505493    ("status", None, TahoeStatusCommand, "Various status information."),
    506     ]  # type: SubCommands
     494    ]
    507495
    508496def mkdir(options):
Note: See TracChangeset for help on using the changeset viewer.