summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kohl <mattkohl@users.noreply.github.com>2019-10-04 06:56:50 +0100
committerMike Bayer <mike_mp@zzzcomputing.com>2019-10-04 09:24:52 -0400
commit589548f23a33e4728cfc116ffa23237fe980f7fc (patch)
treef3e1481345039bc8066675f862aae94eedc67715
parentd3d96220a1b3d78900be10ecbc7cdef034f403ff (diff)
downloadsqlalchemy-589548f23a33e4728cfc116ffa23237fe980f7fc.tar.gz
import StringIO => import io
(cherry picked from commit edf8e782cf5011cd43a0ee281b9e0b1d1becef1f)
-rw-r--r--doc/build/faq/performance.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/faq/performance.rst b/doc/build/faq/performance.rst
index 5aa6369a9..0f8fd416b 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