Do not install aliases from future
Installing aliases from python-future is unreliable and slow.
This commit is contained in:
parent
6583da75bd
commit
f3ccafe3ae
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from future.utils import iteritems
|
from future.utils import iteritems
|
||||||
|
@ -19,14 +19,13 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import logging
|
import logging
|
||||||
import urllib.parse
|
|
||||||
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
|
||||||
@ -120,7 +119,7 @@ class BaseRequest( object ):
|
|||||||
headers = dict( _HEADERS )
|
headers = dict( _HEADERS )
|
||||||
headers[ _HMAC_HEADER ] = b64encode(
|
headers[ _HMAC_HEADER ] = b64encode(
|
||||||
CreateRequestHmac( ToBytes( method ),
|
CreateRequestHmac( ToBytes( method ),
|
||||||
ToBytes( urllib.parse.urlparse( request_uri ).path ),
|
ToBytes( urlparse( request_uri ).path ),
|
||||||
request_body,
|
request_body,
|
||||||
BaseRequest.hmac_secret ) )
|
BaseRequest.hmac_secret ) )
|
||||||
return headers
|
return headers
|
||||||
@ -263,8 +262,7 @@ def _ValidateResponseObject( response ):
|
|||||||
|
|
||||||
|
|
||||||
def _BuildUri( handler ):
|
def _BuildUri( handler ):
|
||||||
return native( ToBytes( urllib.parse.urljoin( BaseRequest.server_location,
|
return native( ToBytes( urljoin( BaseRequest.server_location, handler ) ) )
|
||||||
handler ) ) )
|
|
||||||
|
|
||||||
|
|
||||||
def MakeServerException( data ):
|
def MakeServerException( data ):
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.client.base_request import ( BaseRequest, BuildRequestData,
|
from ycm.client.base_request import ( BaseRequest, BuildRequestData,
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.client.base_request import ( BaseRequest, BuildRequestData,
|
from ycm.client.base_request import ( BaseRequest, BuildRequestData,
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycmd.utils import ToUnicode
|
from ycmd.utils import ToUnicode
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.client.base_request import ( BaseRequest, BuildRequestData,
|
from ycm.client.base_request import ( BaseRequest, BuildRequestData,
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.client.base_request import ( BaseRequest, BuildRequestData,
|
from ycm.client.base_request import ( BaseRequest, BuildRequestData,
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.client.completion_request import CompletionRequest
|
from ycm.client.completion_request import CompletionRequest
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.client.base_request import BaseRequest, HandleServerException
|
from ycm.client.base_request import BaseRequest, HandleServerException
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from future.utils import iterkeys, iteritems
|
from future.utils import iterkeys, iteritems
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from future.utils import itervalues, iteritems
|
from future.utils import itervalues, iteritems
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
import vim
|
import vim
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from future.utils import itervalues
|
from future.utils import itervalues
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.tests.test_utils import MockVimModule
|
from ycm.tests.test_utils import MockVimModule
|
||||||
|
@ -22,8 +22,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.tests.test_utils import ExtendedMock, MockVimModule
|
from ycm.tests.test_utils import ExtendedMock, MockVimModule
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from nose.tools import eq_
|
from nose.tools import eq_
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from mock import MagicMock
|
from mock import MagicMock
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.tests.test_utils import ( MockVimModule, MockVimBuffers, VimBuffer )
|
from ycm.tests.test_utils import ( MockVimModule, MockVimBuffers, VimBuffer )
|
||||||
|
@ -21,8 +21,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.tests.test_utils import ( CurrentWorkingDirectory, ExtendedMock,
|
from ycm.tests.test_utils import ( CurrentWorkingDirectory, ExtendedMock,
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.tests.test_utils import MockVimModule
|
from ycm.tests.test_utils import MockVimModule
|
||||||
|
@ -21,8 +21,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.tests.test_utils import ( CurrentWorkingDirectory, ExtendedMock,
|
from ycm.tests.test_utils import ( CurrentWorkingDirectory, ExtendedMock,
|
||||||
|
@ -21,11 +21,10 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
from future.utils import PY2
|
|
||||||
|
|
||||||
|
from future.utils import PY2
|
||||||
from mock import patch, call
|
from mock import patch, call
|
||||||
from nose.tools import eq_
|
from nose.tools import eq_
|
||||||
from hamcrest import contains_string
|
from hamcrest import contains_string
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.tests.test_utils import MockVimModule
|
from ycm.tests.test_utils import MockVimModule
|
||||||
|
@ -21,8 +21,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.tests.test_utils import MockVimModule
|
from ycm.tests.test_utils import MockVimModule
|
||||||
|
@ -20,8 +20,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.tests.test_utils import MockVimModule
|
from ycm.tests.test_utils import MockVimModule
|
||||||
|
@ -20,8 +20,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from mock import MagicMock, patch
|
from mock import MagicMock, patch
|
||||||
|
@ -21,8 +21,7 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.tests import PathToTestFile
|
from ycm.tests import PathToTestFile
|
||||||
|
@ -19,8 +19,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from ycm.tests.test_utils import ( ExtendedMock, MockVimBuffers, MockVimModule,
|
from ycm.tests.test_utils import ( ExtendedMock, MockVimBuffers, MockVimModule,
|
||||||
|
@ -20,8 +20,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from future.utils import iterkeys
|
from future.utils import iterkeys
|
||||||
|
@ -20,8 +20,7 @@ from __future__ import unicode_literals
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from future import standard_library
|
# Not installing aliases from python-future; it's unreliable and slow.
|
||||||
standard_library.install_aliases()
|
|
||||||
from builtins import * # noqa
|
from builtins import * # noqa
|
||||||
|
|
||||||
from future.utils import iteritems
|
from future.utils import iteritems
|
||||||
|
Loading…
x
Reference in New Issue
Block a user