Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 32f788c

Browse files
committed
fix profiling again
1 parent 5090388 commit 32f788c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethereum/tests/profile_vm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import ethereum.testutils as testutils
44
import cProfile
55
import pstats
6-
from io import StringIO
6+
from io import BytesIO
77
import time
88
from rlp.utils import encode_hex
99
from ethereum.utils import sha3, to_string
@@ -39,7 +39,7 @@ def run(profiler=None):
3939
if len(sys.argv) == 1:
4040
pr = cProfile.Profile()
4141
run(pr)
42-
s = StringIO()
42+
s = BytesIO()
4343
sortby = 'tottime'
4444
ps = pstats.Stats(pr, stream=s).sort_stats(sortby)
4545
ps.print_stats(50)

0 commit comments

Comments
 (0)