Skip to content

Commit

Permalink
Remove more import *
Browse files Browse the repository at this point in the history
  • Loading branch information
Siecje committed Oct 11, 2022
1 parent c967c3c commit 7b0e547
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
import logging
import sys

from volttron.platform.vip.agent import *
from volttron.platform.agent.base_historian import BaseHistorian, add_timing_data_to_header
from volttron.platform.agent import utils
from volttron.platform.agent import math_utils
from volttron.platform.vip.agent.core import Core

utils.setup_logging()
_log = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion volttron/platform/agent/base_weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
from volttron.platform.agent.utils import fix_sqlite3_datetime, \
get_aware_utc_now, format_timestamp, process_timestamp, \
parse_timestamp_string
from volttron.platform.vip.agent import *
from volttron.platform.vip.agent import Agent
from volttron.platform.async_ import AsyncCall
from volttron.platform.messaging import headers
from volttron.platform.messaging.health import (STATUS_BAD,
Expand Down
3 changes: 1 addition & 2 deletions volttron/platform/lib/inotify/green.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
import gevent
from gevent.select import select

from . import _inotify, __all__, _main
from . import *
from . import IN_NONBLOCK, _inotify, _main
import logging

_log = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion volttron/platform/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
from volttron.platform import __version__
from volttron.platform import config

from volttron.platform.vip.router import *
from volttron.platform.vip.router import BaseRouter, ERROR, INCOMING, UNROUTABLE
from volttron.platform.vip.socket import decode_key, encode_key, Address
from volttron.platform.vip.tracking import Tracker
from volttron.platform.auth.auth import AuthService
Expand Down
8 changes: 4 additions & 4 deletions volttron/platform/vip/agent/example.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@



import gevent

from volttron.platform.vip.agent import *
from volttron.platform.vip.agent import Agent
from volttron.platform.vip.agent.core import Core
from volttron.platform.vip.agent.errors import Unreachable
from volttron.platform.vip.agent.subsystems import RPC
from volttron.platform.scheduling import periodic


Expand Down
1 change: 0 additions & 1 deletion volttron/platform/vip/green.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
from zmq.green import NOBLOCK, POLLOUT
from zmq import green as _green

from . import *
from .router import BaseRouter as _BaseRouter
from .socket import _Socket

Expand Down
1 change: 0 additions & 1 deletion volttrontesting/platform/security/test_aip_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from volttron.platform import is_rabbitmq_available
from volttron.platform import get_services_core
from volttron.platform.agent.utils import execute_command
from volttron.platform.vip.agent import *
from volttrontesting.fixtures.volttron_platform_fixtures import build_wrapper, cleanup_wrapper, rmq_skipif
from volttrontesting.utils.utils import get_rand_vip

Expand Down
2 changes: 1 addition & 1 deletion volttrontesting/services/historian/test_base_historian.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
STATUS_KEY_TIME_ERROR)
from volttron.platform.agent import utils
from volttron.platform.messaging import headers as headers_mod
from volttron.platform.messaging.health import *
from volttron.platform.messaging.health import STATUS_BAD, STATUS_GOOD, Status
from volttron.platform.messaging import topics
from volttron.platform.agent.known_identities import CONFIGURATION_STORE

Expand Down
2 changes: 1 addition & 1 deletion volttrontesting/services/weather/test_base_weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
from volttron.platform.agent import utils
from volttron.platform.agent.base_weather import BaseWeatherAgent
from volttron.platform.agent.utils import get_fq_identity
from volttron.platform.messaging.health import *
from volttron.platform.messaging.health import STATUS_BAD, STATUS_GOOD

utils.setup_logging()
_log = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion volttrontesting/subsystems/test_health_subsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from volttron.platform.messaging import topics
from volttron.platform.messaging.headers import DATE
from volttron.platform.messaging.health import *
from volttron.platform.messaging.health import STATUS_BAD, STATUS_GOOD, Status
from volttron.platform.agent.utils import parse_timestamp_string
from volttrontesting.utils.utils import (poll_gevent_sleep,
messages_contains_prefix)
Expand Down

0 comments on commit 7b0e547

Please sign in to comment.