Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b79b2e9 + 781da2b commit 9863d68Copy full SHA for 9863d68
pymode/__init__.py
@@ -31,9 +31,12 @@ class Options(object):
31
def get_documentation():
32
""" Search documentation and append to current buffer. """
33
34
- import StringIO
+ try:
35
+ from StringIO import StringIO
36
+ except ImportError:
37
+ from io import StringIO
38
- sys.stdout, _ = StringIO.StringIO(), sys.stdout
39
+ sys.stdout, _ = StringIO(), sys.stdout
40
help(vim.eval('a:word'))
41
sys.stdout, out = _, sys.stdout.getvalue()
42
vim.current.buffer.append(str(out).splitlines(), 0)
0 commit comments