Skip to content

Commit

Permalink
Merge pull request #3064 from Siecje/unused_imports4
Browse files Browse the repository at this point in the history
Remove unused imports
  • Loading branch information
craig8 authored Jun 8, 2023
2 parents 8e6df4e + 324e9b0 commit 49a2584
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion services/core/DNP3Agent/tests/test_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from dnp3.points import PointDefinition, ArrayHeadPointDefinition, PointDefinitions, PointValue

from test_mesa_agent import POINT_DEFINITIONS_PATH, FUNCTION_DEFINITIONS_PATH
from test_mesa_agent import POINT_DEFINITIONS_PATH


AO_4 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
from math import pi

from platform_driver.interfaces import BaseInterface, BaseRegister, BasicRevert
from csv import DictReader
from io import StringIO
import logging

_log = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from volttron.platform import get_services_core
from platform_driver.interfaces.modbus_tk.server import Server
from platform_driver.interfaces.modbus_tk.maps import Map, Catalog
from platform_driver.interfaces.modbus_tk.maps import Catalog
from volttron.platform.agent.known_identities import PLATFORM_DRIVER

logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import tempfile
import uuid

import gevent
import pytest
import requests
from volttron.platform.agent.known_identities import (
Expand All @@ -13,7 +12,6 @@
from volttron.platform.keystore import KeyStore
from volttron.platform.messaging.health import STATUS_GOOD
from volttron.platform.vip.agent import Agent
from volttron.platform.vip.agent.connection import Connection
from volttron.platform.web import DiscoveryInfo
from volttrontesting.utils.agent_additions import \
add_volttron_central_platform
Expand Down
5 changes: 1 addition & 4 deletions services/ops/EmailerAgent/emailer/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
# }}}



from collections import defaultdict

# Import the email modules we'll need
from email.mime.text import MIMEText
import logging
Expand All @@ -51,7 +48,7 @@

import gevent
from volttron.platform.agent.utils import get_utc_seconds_from_epoch
from volttron.platform.vip.agent import Agent, Core, PubSub, compat
from volttron.platform.vip.agent import Agent, PubSub, compat
from volttron.platform.agent import utils
from volttron.platform.messaging import topics
from volttron.platform.messaging.health import ALERT_KEY, STATUS_BAD, Status, \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
import sys
import statistics

from volttron.platform.vip.agent import Agent, RPC, Core
from volttron.platform.vip.agent import Agent, Core
from volttron.platform.agent import utils
from volttron.platform.agent.utils import get_aware_utc_now

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@

import logging
import sys
import uuid
import unittest
import mock
from mock import Mock
Expand Down
3 changes: 1 addition & 2 deletions volttron/platform/aip.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
get_messagebus,
get_platform_instance_name)
from volttron.platform import get_home
from volttron.platform.agent.utils import load_platform_config, \
get_utc_seconds_from_epoch
from volttron.platform.agent.utils import get_utc_seconds_from_epoch
from volttron.platform.packages import UnpackedPackage
from volttron.platform.vip.agent import Agent
from volttron.platform.auth.auth_entry import AuthEntry
Expand Down
1 change: 0 additions & 1 deletion volttron/platform/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
fn()

import argparse
import errno
import logging
import logging.config
import os
Expand Down
2 changes: 1 addition & 1 deletion volttron/platform/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
from volttron.platform.agent.utils import parse_json_config
from volttron.platform.vip.agent import errors
from volttron.platform.jsonrpc import RemoteError, MethodNotFound
from volttron.platform.agent.utils import parse_timestamp_string, format_timestamp, get_aware_utc_now
from volttron.platform.agent.utils import format_timestamp, get_aware_utc_now
from volttron.platform.storeutils import check_for_recursion, strip_config_name, store_ext
from .vip.agent import Agent, Core, RPC

Expand Down
1 change: 0 additions & 1 deletion volttron/platform/vip/agent/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

import logging
import urllib.parse
import uuid
import os

import gevent
Expand Down
1 change: 0 additions & 1 deletion volttron/platform/vip/agent/subsystems/configstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import os
import weakref
import fnmatch
import greenlet
import inspect

from .base import SubsystemBase
Expand Down
2 changes: 1 addition & 1 deletion volttron/utils/rmq_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
from volttron.platform import get_home
from volttron.platform.agent.utils import (store_message_bus_config,
execute_command)
from volttron.utils.prompt import prompt_response, y, n, y_or_n
from volttron.utils.prompt import prompt_response, y, y_or_n
from volttron.platform import jsonapi
from urllib.parse import urlparse
from volttron.platform.agent.utils import get_platform_instance_name, get_fq_identity
Expand Down

0 comments on commit 49a2584

Please sign in to comment.