Auto merge of #2578 - micbou:urllib-compatibility, r=Valloric
[READY] Import urljoin and urlparse from ycmd.utils See https://github.com/Valloric/ycmd/pull/724. This also fixes a regression in startup time on Python 3 because importing `futures.moves` was calling [the `import_top_level_modules` function](https://github.com/PythonCharmers/python-future/blob/master/src/future/moves/__init__.py#L7-L8) which is slow. Fixes https://github.com/Valloric/YouCompleteMe/issues/2577. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2578) <!-- Reviewable:end -->
This commit is contained in:
commit
32ea947dd0
@ -25,11 +25,10 @@ from builtins import * # noqa
|
|||||||
import contextlib
|
import contextlib
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
from future.moves.urllib.parse import urljoin, urlparse
|
|
||||||
from future.utils import native
|
from future.utils import native
|
||||||
from base64 import b64decode, b64encode
|
from base64 import b64decode, b64encode
|
||||||
from ycm import vimsupport
|
from ycm import vimsupport
|
||||||
from ycmd.utils import ToBytes
|
from ycmd.utils import ToBytes, urljoin, urlparse
|
||||||
from ycmd.hmac_utils import CreateRequestHmac, CreateHmac, SecureBytesEqual
|
from ycmd.hmac_utils import CreateRequestHmac, CreateHmac, SecureBytesEqual
|
||||||
from ycmd.responses import ServerError, UnknownExtraConf
|
from ycmd.responses import ServerError, UnknownExtraConf
|
||||||
|
|
||||||
|
2
third_party/ycmd
vendored
2
third_party/ycmd
vendored
@ -1 +1 @@
|
|||||||
Subproject commit e709629389e7fe524e3c18e6896026956d968d16
|
Subproject commit fc7620a8a8b3880726c81b6b4e1789d8d25e38b6
|
Loading…
Reference in New Issue
Block a user