Skip to content

Commit 9dad955

Browse files
committedMar 15, 2018
Fix #2986 -- make auto work by not using yarl.unquote (to match upstream)
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 2b4a8d5 commit 9dad955

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎nikola/plugins/command/auto/__init__.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@
3838
import aiohttp
3939
from aiohttp import web
4040
from aiohttp.web_urldispatcher import StaticResource
41-
from yarl import unquote
4241
from aiohttp.web_exceptions import HTTPNotFound, HTTPForbidden
4342
from aiohttp.web_response import Response
4443
from aiohttp.web_fileresponse import FileResponse
4544
except ImportError:
46-
aiohttp = web = unquote = None
45+
aiohttp = web = None
4746
StaticResource = HTTPNotFound = HTTPForbidden = Response = FileResponse = object
4847

4948
try:
@@ -409,7 +408,7 @@ def __init__(self, modify_html=True, snippet="</head>", *args, **kwargs):
409408
@asyncio.coroutine
410409
def _handle(self, request):
411410
"""Handle incoming requests (pass to handle_file)."""
412-
filename = unquote(request.match_info['filename'])
411+
filename = request.match_info['filename']
413412
ret = yield from self.handle_file(request, filename)
414413
return ret
415414

‎requirements-extras.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ webassets>=0.10.1
1010
notebook>=4.0.0
1111
ipykernel>=4.0.0
1212
ghp-import2>=1.0.0
13-
aiohttp>=2.2.0
13+
aiohttp>=2.3.8
1414
watchdog>=0.8.3
1515
PyYAML==3.12
1616
toml>=0.9.2

0 commit comments

Comments
 (0)