mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-10 23:12:40 +00:00
Some tweaks for Python 3.
This commit is contained in:
parent
b3ab2fdb81
commit
b4703ace93
@ -1,15 +1,8 @@
|
||||
"""
|
||||
Ported to Python 3.
|
||||
A CLI for configuring a grid manager.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from future.utils import PY2
|
||||
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
|
||||
|
||||
from typing import Optional
|
||||
from datetime import (
|
||||
datetime,
|
||||
timedelta,
|
||||
@ -224,7 +217,7 @@ def sign(ctx, name, expiry_days):
|
||||
f.write(certificate_data.encode("ascii"))
|
||||
|
||||
|
||||
def _config_path_from_option(config):
|
||||
def _config_path_from_option(config: str) -> Optional[FilePath]:
|
||||
"""
|
||||
:param str config: a path or -
|
||||
:returns: a FilePath instance or None
|
||||
|
Loading…
Reference in New Issue
Block a user