diff --git a/errbot/core.py b/errbot/core.py index 4273aab37..83ca407e9 100644 --- a/errbot/core.py +++ b/errbot/core.py @@ -825,7 +825,7 @@ def get_doc(self, command: Callable) -> str: if self.prefix == "!": return command.__doc__ ununderscore_keys = (m.replace("_", " ") for m in self.all_commands.keys()) - pat = re.compile(fr'!({"|".join(ununderscore_keys)})') + pat = re.compile(rf'!({"|".join(ununderscore_keys)})') return re.sub(pat, self.prefix + "\1", command.__doc__) @staticmethod diff --git a/tests/webhooks_test.py b/tests/webhooks_test.py index e13063d32..62ae6135a 100644 --- a/tests/webhooks_test.py +++ b/tests/webhooks_test.py @@ -185,14 +185,11 @@ def test_generate_certificate_creates_usable_cert(webhook_testbot): requests.packages.urllib3.exceptions.InsecureRequestWarning ) - assert ( - requests.post( - "https://localhost:{}/webhook1".format(WEBSERVER_SSL_PORT), - JSONOBJECT, - verify=False, - ).text - == repr(json.loads(JSONOBJECT)) - ) + assert requests.post( + "https://localhost:{}/webhook1".format(WEBSERVER_SSL_PORT), + JSONOBJECT, + verify=False, + ).text == repr(json.loads(JSONOBJECT)) def test_custom_headers_and_status_codes(webhook_testbot):