mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Thrift Python 3 support.
This commit is contained in:
@@ -5,6 +5,7 @@ import pstats
|
||||
from _prof_imports import TSerialization
|
||||
from _prof_imports import TJSONProtocol
|
||||
from _prof_imports import ProfilerResponse, Stats, FuncStat, Function
|
||||
from _prof_imports import IS_PY3K
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
@@ -52,6 +53,9 @@ if __name__ == '__main__':
|
||||
|
||||
data = TSerialization.serialize(m, TJSONProtocol.TJSONProtocolFactory())
|
||||
|
||||
if IS_PY3K:
|
||||
data = data.decode("utf-8")
|
||||
|
||||
sys.stdout.write(data)
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user