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