From 5fc4a00b7c5c5be0facc0040b52a54fc072f7158 Mon Sep 17 00:00:00 2001 From: rxwen Date: Tue, 14 Jan 2014 23:22:48 +0800 Subject: [PATCH] There is no way for a dictionary to return None for non-existing key if a default value is provided --- python/ycm/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/utils.py b/python/ycm/utils.py index fcd81a6c..608b484f 100644 --- a/python/ycm/utils.py +++ b/python/ycm/utils.py @@ -176,7 +176,7 @@ def ForceSemanticCompletion( request_data ): # A wrapper for subprocess.Popen that works around a Popen bug on Windows. def SafePopen( *args, **kwargs ): - if kwargs.get( 'stdin', '' ) is None: + if kwargs.get( 'stdin' ) is None: # We need this on Windows otherwise bad things happen. See issue #637. kwargs[ 'stdin' ] = subprocess.PIPE if OnWindows() else None