Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PathLike #6876

Merged
merged 17 commits into from
Nov 29, 2022
Prev Previous commit
Next Next commit
Update web.py
Dreamsorcerer authored Aug 8, 2022
commit 0efe15d149a1062077b1fc55b88ca76a7983fc74
3 changes: 2 additions & 1 deletion aiohttp/web.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
import logging
import os
import socket
import sys
from argparse import ArgumentParser
@@ -368,7 +369,7 @@ async def _run_app(
)

if path is not None:
if isinstance(path, (str, bytes, bytearray, memoryview, Path)):
if isinstance(path, (str, bytes, bytearray, memoryview, os.PathLike)):
Dreamsorcerer marked this conversation as resolved.
Show resolved Hide resolved
sites.append(
UnixSite(
runner,