From: Roger Light Date: Sat, 21 Dec 2013 21:39:11 +0000 (+0000) Subject: Compatibility class for porting from mosquitto.py. X-Git-Tag: v0.9~33 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e68ee6ed7108094b00d634b9dbe4167c87a9d8fd;p=packages%2Fp%2Fpaho-mqtt.git Compatibility class for porting from mosquitto.py. --- diff --git a/src/paho/mqtt/client.py b/src/paho/mqtt/client.py index e1d0f5c..a6da14f 100755 --- a/src/paho/mqtt/client.py +++ b/src/paho/mqtt/client.py @@ -2055,3 +2055,8 @@ class Client(object): raise ssl.SSLError('Certificate subject does not match remote hostname.') + +# Compatibility class for easy porting from mosquitto.py. +class Mosquitto(Client): + def __init__(self, client_id="", clean_session=True, userdata=None): + super(Mosquitto, self).__init__(client_id, clean_session, userdata)