Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit781da2b

Browse files
committed
Fixes StringIO import error in #pymode#doc#Show.Fixespython-mode#409.
1 parentb79b2e9 commit781da2b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎pymode/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ class Options(object):
3131
defget_documentation():
3232
""" Search documentation and append to current buffer. """
3333

34-
importStringIO
34+
try:
35+
fromStringIOimportStringIO
36+
exceptImportError:
37+
fromioimportStringIO
3538

36-
sys.stdout,_=StringIO.StringIO(),sys.stdout
39+
sys.stdout,_=StringIO(),sys.stdout
3740
help(vim.eval('a:word'))
3841
sys.stdout,out=_,sys.stdout.getvalue()
3942
vim.current.buffer.append(str(out).splitlines(),0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp