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

Commitd2111cd

Browse files
author
Wu, Fan
committed
stdout will be set to vim.message, but in early release of vim 7.3, message object didn't have method flush.
It will cause some problems in multiprocessing related code.Fixed of issuepython-mode#426
1 parenta1423ae commitd2111cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎pymode/rope.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
importre
77
importsite
88
importsys
9+
importStringIO
910

1011
fromrope.baseimportproject,libutils,exceptions,change,worder# noqa
1112
fromrope.base.fscommandsimportFileSystemCommands# noqa
@@ -398,9 +399,12 @@ def _update_cache(importer, modules=None):
398399
importer.generate_modules_cache(modules)
399400
importer.project.sync()
400401

402+
sys.stdout,stdout_=StringIO.StringIO(),sys.stdout
403+
sys.stderr,stderr_=StringIO.StringIO(),sys.stderr
401404
process=multiprocessing.Process(target=_update_cache,args=(
402405
self.importer,modules))
403406
process.start()
407+
sys.stdout,sys.stderr=stdout_,stderr_
404408

405409

406410
classProgressHandler(object):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp