Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Siecje committed Aug 18, 2023
1 parent a39657d commit d3c6b68
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
- platform-driver is up and running
"""

import random
from volttron.platform.vip.agent.utils import build_agent
from time import sleep
import datetime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# from dnp3_python.dnp3station.outstation import MyOutStation as MyOutStationNew
from dnp3_python.dnp3station.outstation_new import MyOutStationNew
from pydnp3 import opendnp3
from typing import Callable, Dict
from typing import Dict



Expand Down
8 changes: 0 additions & 8 deletions services/core/DNP3OutstationAgent/tests/test_dnp3_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,12 @@
import gevent
import pytest
import os
# from volttron.client.vip.agent import build_agent
from volttron.platform.vip.agent.utils import build_agent
from time import sleep
import datetime
# from dnp3_outstation.agent import Dnp3OutstationAgent
from services.core.DNP3OutstationAgent.dnp3_outstation_agent.agent import Dnp3Agent as Dnp3OutstationAgent
from dnp3_python.dnp3station.outstation_new import MyOutStationNew
import random
import subprocess
# from volttron.utils import is_volttron_running
import json
# from utils.testing_utils import *
from volttrontesting.fixtures.volttron_platform_fixtures import volttron_instance

import logging

logging_logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@

# TODO-developer: Your code here
# Add dependency as needed, and update in requirements
import json

import logging
import random
import sys

from datetime import datetime

stdout_stream = logging.StreamHandler(sys.stdout)
stdout_stream.setFormatter(logging.Formatter('%(asctime)s\t%(name)s\t%(levelname)s\t%(message)s'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
# under Contract DE-AC05-76RL01830
# }}}
import abc
import random
import datetime
import math
from math import pi

from platform_driver.interfaces import BaseInterface, BaseRegister, BasicRevert
# from ...platform_driver.interfaces import BaseInterface, BaseRegister, BasicRevert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from dnp3_python.dnp3station.outstation_new import MyOutStationNew
from pathlib import Path

import sys
import os

TEST_DIR = os.path.dirname(os.path.abspath(__file__))
Expand Down
7 changes: 2 additions & 5 deletions volttron/platform/auth/auth_protocols/auth_zmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
import random
import uuid
import bisect
from urllib.parse import urlsplit, parse_qs, urlunsplit, urlparse
from urllib.parse import urlsplit, parse_qs, urlunsplit
import gevent
import gevent.time
from zmq import green as zmq
Expand All @@ -56,10 +56,7 @@
from volttron.platform.keystore import KeyStore, KnownHostsStore
from volttron.platform.parameters import Parameters
from volttron.platform.vip.socket import encode_key
from volttron.platform.agent.utils import (
get_platform_instance_name,
get_fq_identity,
)


_log = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion volttron/platform/auth/certs.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import six
import time
from shutil import copyfile
from socket import gethostname, getfqdn, AI_CANONNAME
from socket import gethostname, getfqdn
import subprocess

from cryptography import x509
Expand Down

0 comments on commit d3c6b68

Please sign in to comment.