Commit 1f84a4f8 authored by Eliseo Martínez's avatar Eliseo Martínez

Introduce vim namespace: Contrib YCM: Fix style issues.

Python-mode signaled a couple of issues here:
- Multiple imports on same line.
- Line too long.
parent c0e70e1f
# for nvim source code. # for nvim source code.
import os, ycm_core import os
import ycm_core
def DirectoryOfThisScript(): def DirectoryOfThisScript():
...@@ -24,9 +25,9 @@ def GetCompilationInfoForFile(filename): ...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment