mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 18:27:51 +00:00
Update aiohttp 2.3.10 / yarl 1.1.0 (#12244)
* Update aiohttp 2.3.10 / yarl 1.1.0 * Update setup.py * Update package_constraints.txt * Update google.py * Update static.py
This commit is contained in:
parent
18d027a10d
commit
e4874fd7c7
@ -6,7 +6,7 @@ from aiohttp import hdrs
|
|||||||
from aiohttp.web import FileResponse, middleware
|
from aiohttp.web import FileResponse, middleware
|
||||||
from aiohttp.web_exceptions import HTTPNotFound
|
from aiohttp.web_exceptions import HTTPNotFound
|
||||||
from aiohttp.web_urldispatcher import StaticResource
|
from aiohttp.web_urldispatcher import StaticResource
|
||||||
from yarl import unquote
|
from yarl import URL
|
||||||
|
|
||||||
_FINGERPRINT = re.compile(r'^(.+)-[a-z0-9]{32}\.(\w+)$', re.IGNORECASE)
|
_FINGERPRINT = re.compile(r'^(.+)-[a-z0-9]{32}\.(\w+)$', re.IGNORECASE)
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ class CachingStaticResource(StaticResource):
|
|||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def _handle(self, request):
|
def _handle(self, request):
|
||||||
filename = unquote(request.match_info['filename'])
|
filename = URL(request.match_info['filename']).path
|
||||||
try:
|
try:
|
||||||
# PyLint is wrong about resolve not being a member.
|
# PyLint is wrong about resolve not being a member.
|
||||||
# pylint: disable=no-member
|
# pylint: disable=no-member
|
||||||
|
@ -87,7 +87,7 @@ class GoogleProvider(Provider):
|
|||||||
url_param = {
|
url_param = {
|
||||||
'ie': 'UTF-8',
|
'ie': 'UTF-8',
|
||||||
'tl': language,
|
'tl': language,
|
||||||
'q': yarl.quote(part),
|
'q': yarl.URL(part).raw_path,
|
||||||
'tk': part_token,
|
'tk': part_token,
|
||||||
'total': len(message_parts),
|
'total': len(message_parts),
|
||||||
'idx': idx,
|
'idx': idx,
|
||||||
|
@ -5,8 +5,8 @@ pip>=8.0.3
|
|||||||
jinja2>=2.10
|
jinja2>=2.10
|
||||||
voluptuous==0.10.5
|
voluptuous==0.10.5
|
||||||
typing>=3,<4
|
typing>=3,<4
|
||||||
aiohttp==2.3.7
|
aiohttp==2.3.10
|
||||||
yarl==0.18.0
|
yarl==1.1.0
|
||||||
async_timeout==2.0.0
|
async_timeout==2.0.0
|
||||||
chardet==3.0.4
|
chardet==3.0.4
|
||||||
astral==1.5
|
astral==1.5
|
||||||
|
@ -6,8 +6,8 @@ pip>=8.0.3
|
|||||||
jinja2>=2.10
|
jinja2>=2.10
|
||||||
voluptuous==0.10.5
|
voluptuous==0.10.5
|
||||||
typing>=3,<4
|
typing>=3,<4
|
||||||
aiohttp==2.3.7
|
aiohttp==2.3.10
|
||||||
yarl==0.18.0
|
yarl==1.1.0
|
||||||
async_timeout==2.0.0
|
async_timeout==2.0.0
|
||||||
chardet==3.0.4
|
chardet==3.0.4
|
||||||
astral==1.5
|
astral==1.5
|
||||||
|
4
setup.py
4
setup.py
@ -55,8 +55,8 @@ REQUIRES = [
|
|||||||
'jinja2>=2.10',
|
'jinja2>=2.10',
|
||||||
'voluptuous==0.10.5',
|
'voluptuous==0.10.5',
|
||||||
'typing>=3,<4',
|
'typing>=3,<4',
|
||||||
'aiohttp==2.3.7', # If updated, check if yarl also needs an update!
|
'aiohttp==2.3.10', # If updated, check if yarl also needs an update!
|
||||||
'yarl==0.18.0',
|
'yarl==1.1.0',
|
||||||
'async_timeout==2.0.0',
|
'async_timeout==2.0.0',
|
||||||
'chardet==3.0.4',
|
'chardet==3.0.4',
|
||||||
'astral==1.5',
|
'astral==1.5',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user