Skip to content

Commit fdc6c12

Browse files
Merge pull request #45 from diego-plan9/fix/open-posixpath-3.5
Call open() with string instead of Path, for 3.5
2 parents 60ced97 + 0dddd1a commit fdc6c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aiohttp_apispec/aiohttp_apispec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def add_swagger_web_page(self, app: web.Application, static_path: str, view_path
6565
static_files = Path(__file__).parent / "static"
6666
app.router.add_static(static_path, static_files)
6767

68-
with open(static_files / "index.html") as swg_tmp:
68+
with open(str(static_files / "index.html")) as swg_tmp:
6969
tmp = Template(swg_tmp.read()).render(path=self.url, static=static_path)
7070

7171
async def swagger_view(_):

0 commit comments

Comments
 (0)