diff options
author | Matt Kohl <mattkohl@users.noreply.github.com> | 2019-10-04 06:56:50 +0100 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-10-04 09:24:45 -0400 |
commit | e8409f63da68dd8e6ed01925317dc3911a4d6b35 (patch) | |
tree | 533b44bb970a70fd1d7123d412c241d4d0605962 | |
parent | 4462e3257baf20642a1fa48e8ae37267d8fcefb8 (diff) | |
download | sqlalchemy-e8409f63da68dd8e6ed01925317dc3911a4d6b35.tar.gz |
import StringIO => import io
(cherry picked from commit edf8e782cf5011cd43a0ee281b9e0b1d1becef1f)
-rw-r--r-- | doc/build/faq/performance.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/faq/performance.rst b/doc/build/faq/performance.rst index b35ee38d7..c30e96abb 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 |