From be1bb3617d97d6e981fe9eb0fc798af27823acb1 Mon Sep 17 00:00:00 2001 From: Val Markovic Date: Sun, 28 Feb 2016 18:01:19 -0800 Subject: [PATCH] Minor tweaks --- python/ycm/tests/paths_test.py | 1 - python/ycm/youcompleteme.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/python/ycm/tests/paths_test.py b/python/ycm/tests/paths_test.py index 59445d4b..d9ccc915 100644 --- a/python/ycm/tests/paths_test.py +++ b/python/ycm/tests/paths_test.py @@ -54,7 +54,6 @@ def EndsWithPython_Python2Paths_test(): def EndsWithPython_Python3Paths_test(): python_paths = [ - 'python', 'python3', '/usr/bin/python3.3', '/home/user/.pyenv/shims/python3.3', diff --git a/python/ycm/youcompleteme.py b/python/ycm/youcompleteme.py index 39a86fe0..40a6409f 100644 --- a/python/ycm/youcompleteme.py +++ b/python/ycm/youcompleteme.py @@ -26,12 +26,12 @@ from builtins import * # noqa from future.utils import iteritems import os import vim -import tempfile import json import re import signal import base64 from subprocess import PIPE +from tempfile import NamedTemporaryFile from ycm import paths, vimsupport from ycmd import utils from ycmd.request_wrap import RequestWrap @@ -111,7 +111,7 @@ class YouCompleteMe( object ): self._available_completers = {} server_port = utils.GetUnusedLocalhostPort() # The temp options file is deleted by ycmd during startup - with tempfile.NamedTemporaryFile( delete = False, mode = 'w+' ) as options_file: + with NamedTemporaryFile( delete = False, mode = 'w+' ) as options_file: hmac_secret = os.urandom( HMAC_SECRET_LENGTH ) options_dict = dict( self._user_options ) options_dict[ 'hmac_secret' ] = utils.ToUnicode(