Skip to content

Commit

Permalink
fix: remove mycroft-bus-client compat
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Nov 21, 2024
1 parent 3c73316 commit aaad2f7
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions ovos_utils/fakebus.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,6 @@ def __instancecheck__(self, instance):
return True
except ImportError:
pass
try:
from mycroft_bus_client.message import Message as _MycroftMessage
if isinstance(instance, _MycroftMessage):
return True
except ImportError:
pass
return super().__instancecheck__(instance)


Expand All @@ -192,11 +186,6 @@ def __new__(cls, *args, **kwargs):
return _M(*args, **kwargs)
except ImportError:
pass
try: # some old install that upgraded during migration period
from mycroft_bus_client import Message as _M
return _M(*args, **kwargs)
except ImportError: # FakeMessage
return super().__new__(cls)

def __init__(self, msg_type, data=None, context=None):
"""Used to construct a message object
Expand Down Expand Up @@ -339,9 +328,3 @@ def publish(self, msg_type, data, context=None):

return FakeMessage(msg_type, data, context=new_context)


class Message(FakeMessage):
def __int__(self, *args, **kwargs):
log_deprecation(f"Import from ovos_bus_client.message directly",
"0.1.0")
FakeMessage.__init__(self, *args, **kwargs)

0 comments on commit aaad2f7

Please sign in to comment.