diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-05-19 16:21:50 +0200 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-05-19 16:24:44 +0200 |
commit | 1f84a4f8117a5549ddc02e1d230d5b799b32ad59 (patch) | |
tree | d5db5d632eb92e3354cd561b20b6267b122daee1 | |
parent | c0e70e1fa538dcccdfa465b73c336a7112d29c6e (diff) | |
download | rneovim-1f84a4f8117a5549ddc02e1d230d5b799b32ad59.tar.gz rneovim-1f84a4f8117a5549ddc02e1d230d5b799b32ad59.tar.bz2 rneovim-1f84a4f8117a5549ddc02e1d230d5b799b32ad59.zip |
Introduce vim namespace: Contrib YCM: Fix style issues.
Python-mode signaled a couple of issues here:
- Multiple imports on same line.
- Line too long.
-rw-r--r-- | contrib/YouCompleteMe/ycm_extra_conf.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/YouCompleteMe/ycm_extra_conf.py b/contrib/YouCompleteMe/ycm_extra_conf.py index 8c013598cc..249220bb2b 100644 --- a/contrib/YouCompleteMe/ycm_extra_conf.py +++ b/contrib/YouCompleteMe/ycm_extra_conf.py @@ -1,5 +1,6 @@ # .ycm_extra_conf.py for nvim source code. -import os, ycm_core +import os +import ycm_core def DirectoryOfThisScript(): @@ -24,9 +25,9 @@ def GetCompilationInfoForFile(filename): return None if IsHeaderFile(filename): basename = os.path.splitext(filename)[0] - replacement_file = basename + '.c' - if os.path.exists(replacement_file): - compilation_info = database.GetCompilationInfoForFile(replacement_file) + c_file = basename + '.c' + if os.path.exists(c_file): + compilation_info = database.GetCompilationInfoForFile(c_file) if compilation_info.compiler_flags_: return compilation_info return None |