Skip to content

Commit

Permalink
Update web.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Aug 8, 2022
1 parent ff99c2e commit 0efe15d
Showing 1 changed file with 2 additions and 1 deletion.
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
Expand Down Expand Up @@ -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)):
sites.append(
UnixSite(
runner,
Expand Down

0 comments on commit 0efe15d

Please sign in to comment.