From: Matt Kohl Date: Fri, 4 Oct 2019 05:56:50 +0000 (+0100) Subject: import StringIO => import io X-Git-Tag: rel_1_4_0b1~702 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4889%2Fhead;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git import StringIO => import io --- 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