aboutsummaryrefslogtreecommitdiffstats
path: root/calls.py
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2020-06-29 11:03:49 +0200
committernico <nico@magicbroccoli.de>2020-06-29 11:03:49 +0200
commit5f0cb289c1d91513427ffdc8f646bc86516c2759 (patch)
tree21baf49489262b0e27ec94a8203d63aab17b1506 /calls.py
parenta8b78be75d44dedf4b7fdf2eacb4d8a32e0b3aef (diff)
black reformat
* black reformatted the code
Diffstat (limited to 'calls.py')
-rw-r--r--calls.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/calls.py b/calls.py
index 8af5e89..8c615b8 100644
--- a/calls.py
+++ b/calls.py
@@ -14,8 +14,8 @@ class EjabberdApiCalls(EjabberdApi):
@property
def nodename(self):
if self._login is not None:
- node_str = re.compile('The node \'(.*)\'')
- status = self.cmd('status', {})
+ node_str = re.compile("The node '(.*)'")
+ status = self.cmd("status", {})
# matches
try:
@@ -32,8 +32,8 @@ class EjabberdApiCalls(EjabberdApi):
@property
def verstring(self):
if self._login is not None:
- ver_str = re.compile('([1-9][0-9.]+(?![.a-z]))\\b')
- status = self.cmd('status', {})
+ ver_str = re.compile("([1-9][0-9.]+(?![.a-z]))\\b")
+ status = self.cmd("status", {})
# matches
try:
@@ -117,7 +117,7 @@ class EjabberdApiCalls(EjabberdApi):
host = "global"
if vhost is not None:
if self.verstring.major >= 19:
- host = '.'.join([muc_host, vhost])
+ host = ".".join([muc_host, vhost])
else:
host = vhost
result = self.cmd("muc_online_rooms", {"host": host})