Skip to content

Commit 778f031

Browse files
committed
ling quotes
1 parent 2ff8a71 commit 778f031

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mautrix/api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ def __init__(
233233
self.session = client_session
234234
else:
235235
connector = None
236-
if base_url.startswith('unix://'):
237-
connector = UnixConnector(path=base_url.replace('unix://', ''))
236+
if base_url.startswith("unix://"):
237+
connector = UnixConnector(path=base_url.replace("unix://", ""))
238238
self.session = ClientSession(
239239
loop=loop, headers={"User-Agent": self.default_ua}, connector=connector
240240
)

mautrix/appservice/appservice.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ async def start(self, host: str = "127.0.0.1", port: int = 8080) -> None:
153153
await self.state_store.open()
154154
self.log.debug(f"Starting appservice web server on {host}:{port}")
155155
if self.server.startswith("unix://"):
156-
path = self.server.replace('unix://', '')
157-
self.server = 'http://localhost'
156+
path = self.server.replace("unix://", "")
157+
self.server = "http://localhost"
158158
connector = aiohttp.UnixConnector(limit=self.connection_limit, path=path)
159159
elif self.server.startswith("https://") and not self.verify_ssl:
160160
connector = aiohttp.TCPConnector(limit=self.connection_limit, verify_ssl=False)

0 commit comments

Comments
 (0)