mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2026-04-18 14:03:32 +00:00
alter format of __repr__ in Req + Event clients
password now defaults to empty string, not None.
This commit is contained in:
@@ -28,8 +28,10 @@ class EventClient:
|
||||
self.subscribe()
|
||||
|
||||
def __repr__(self):
|
||||
return type(self).__name__ + "({host} {port} {password} {subs})".format(
|
||||
**self.base_client.__dict__
|
||||
return type(
|
||||
self
|
||||
).__name__ + "(host='{host}', port={port}, password='{password}', subs={subs})".format(
|
||||
**self.base_client.__dict__,
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user