Skip to content

Commit

Permalink
fix import, maintain backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejgray committed Nov 20, 2024
1 parent f0dbd7a commit 6513cb5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion ovos_bus_client/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
from uuid import uuid4

from ovos_utils.log import LOG, deprecated
from pyee import ExecutorEventEmitter
try:
from pyee import ExecutorEventEmitter
except ImportError:
from pyee.executor import ExecutorEventEmitter

from websocket import (WebSocketApp,
WebSocketConnectionClosedException,
WebSocketException)
Expand Down
5 changes: 4 additions & 1 deletion test/unittests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
import unittest
from unittest.mock import call, Mock, patch

from pyee import ExecutorEventEmitter
try:
from pyee import ExecutorEventEmitter
except ImportError:
from pyee.executor import ExecutorEventEmitter

from ovos_bus_client.message import Message
from ovos_bus_client.client.client import MessageBusClient, GUIWebsocketClient
Expand Down
6 changes: 5 additions & 1 deletion test/unittests/test_event_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

import unittest
import time
from pyee import ExecutorEventEmitter
try:
from pyee import ExecutorEventEmitter
except ImportError:
from pyee.executor import ExecutorEventEmitter


from unittest.mock import MagicMock, patch
from ovos_utils.messagebus import FakeBus
Expand Down

0 comments on commit 6513cb5

Please sign in to comment.