isort the repo

This commit is contained in:
Franzi 2023-02-05 17:30:58 +01:00
parent 429bc2a7c6
commit 4122a7ccf8
Signed by: kunsi
GPG key ID: 12E3D2136B818350
33 changed files with 36 additions and 32 deletions

View file

@ -1,4 +1,4 @@
from json import loads, dumps
from json import dumps, loads
from bundlewrap.metadata import metadata_to_json
from bundlewrap.utils import Fault

View file

@ -1,5 +1,5 @@
from ipaddress import IPv4Network, ip_network
from os.path import abspath, dirname, join
from ipaddress import ip_network, IPv4Network
REPO_PATH = dirname(dirname(abspath(__file__)))

View file

@ -1,8 +1,11 @@
import base64
from nacl.public import PrivateKey
from nacl.encoding import Base64Encoder
from nacl.public import PrivateKey
from bundlewrap.utils import Fault
def gen_privkey(repo, identifier):
return repo.vault.random_bytes_as_base64_for(identifier)

View file

@ -1,9 +1,10 @@
from ipaddress import ip_address, ip_network, IPv4Address, IPv4Network
from ipaddress import IPv4Address, IPv4Network, ip_address, ip_network
from bundlewrap.exceptions import NoSuchGroup, NoSuchNode, BundleError
from bundlewrap.exceptions import BundleError, NoSuchGroup, NoSuchNode
from bundlewrap.utils.text import bold, red
from bundlewrap.utils.ui import io
def resolve_identifier(repo, identifier):
"""
Try to resolve an identifier (group or node). Return a set of ip