From edf8e782cf5011cd43a0ee281b9e0b1d1becef1f Mon Sep 17 00:00:00 2001 From: Matt Kohl Date: Fri, 4 Oct 2019 06:56:50 +0100 Subject: [PATCH] import StringIO => import io --- doc/build/faq/performance.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/build/faq/performance.rst b/doc/build/faq/performance.rst index b35ee38d77..c30e96abba 100644 --- a/doc/build/faq/performance.rst +++ b/doc/build/faq/performance.rst @@ -89,7 +89,7 @@ For that you need to use the Below is a simple recipe which works profiling into a context manager:: import cProfile - import StringIO + import io import pstats import contextlib @@ -99,7 +99,7 @@ Below is a simple recipe which works profiling into a context manager:: pr.enable() yield pr.disable() - s = StringIO.StringIO() + s = io.StringIO() ps = pstats.Stats(pr, stream=s).sort_stats('cumulative') ps.print_stats() # uncomment this to see who's calling what -- 2.47.2