diff --git a/riseup_vpn_configurator/__init__.py b/riseup_vpn_configurator/__init__.py index 10ad505..ef93fb2 100644 --- a/riseup_vpn_configurator/__init__.py +++ b/riseup_vpn_configurator/__init__.py @@ -1,24 +1,25 @@ #!/usr/bin/env python3 -import sys -import os -import logging import argparse +import grp import json -import yaml -import subprocess +import logging +import os import pwd -import grp -from jinja2 import Template +import shutil +import socket +import subprocess +import sys +from ipaddress import ip_network from pathlib import Path +from typing import NoReturn, Optional + +import psutil import requests -from ipaddress import ip_network -from pyasn1_modules import pem, rfc2459 +import yaml +from icmplib import ICMPLibError, ping +from jinja2 import Template from pyasn1.codec.der import decoder -import psutil -from icmplib import ping, ICMPLibError -import shutil -import socket -from typing import Optional, NoReturn +from pyasn1_modules import pem, rfc2459 FORMAT = "%(levelname)s: %(message)s" logging.basicConfig(format=FORMAT, level=logging.INFO)