Introduce vim namespace: Contrib YCM: Fix style issues.

Python-mode signaled a couple of issues here:
- Multiple imports on same line.
- Line too long.
This commit is contained in:
Eliseo Martínez 2014-05-19 16:21:50 +02:00
parent c0e70e1fa5
commit 1f84a4f811

View File

@ -1,5 +1,6 @@
# .ycm_extra_conf.py for nvim source code. # .ycm_extra_conf.py for nvim source code.
import os, ycm_core import os
import ycm_core
def DirectoryOfThisScript(): def DirectoryOfThisScript():
@ -24,9 +25,9 @@ def GetCompilationInfoForFile(filename):
return None return None
if IsHeaderFile(filename): if IsHeaderFile(filename):
basename = os.path.splitext(filename)[0] basename = os.path.splitext(filename)[0]
replacement_file = basename + '.c' c_file = basename + '.c'
if os.path.exists(replacement_file): if os.path.exists(c_file):
compilation_info = database.GetCompilationInfoForFile(replacement_file) compilation_info = database.GetCompilationInfoForFile(c_file)
if compilation_info.compiler_flags_: if compilation_info.compiler_flags_:
return compilation_info return compilation_info
return None return None