Work around missing vim module when generating sphinx docs
Horrible solution, should be fixed asap.
This commit is contained in:
parent
55ad48f0e6
commit
b599761ae6
|
@ -1,6 +1,9 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
try:
|
||||||
import vim
|
import vim
|
||||||
|
except ImportError:
|
||||||
|
vim = {}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
_vim_globals = vim.bindeval('g:')
|
_vim_globals = vim.bindeval('g:')
|
||||||
|
|
|
@ -3,7 +3,10 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
try:
|
||||||
import vim
|
import vim
|
||||||
|
except ImportError:
|
||||||
|
vim = {}
|
||||||
|
|
||||||
from powerline.bindings.vim import vim_get_func
|
from powerline.bindings.vim import vim_get_func
|
||||||
from powerline.lib import memoize, humanize_bytes
|
from powerline.lib import memoize, humanize_bytes
|
||||||
|
|
Loading…
Reference in New Issue