]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
import StringIO => import io
authorMatt Kohl <mattkohl@users.noreply.github.com>
Fri, 4 Oct 2019 05:56:50 +0000 (06:56 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 4 Oct 2019 13:24:52 +0000 (09:24 -0400)
(cherry picked from commit edf8e782cf5011cd43a0ee281b9e0b1d1becef1f)

doc/build/faq/performance.rst

index 5aa6369a924d0817101bbda4775fbf4a69a1be3a..0f8fd416b4360349940b91529a11bdaa0ca7950b 100644 (file)
@@ -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