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.
1 parent b79b2e9 commit 781da2bCopy full SHA for 781da2b
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