]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
import StringIO => import io 4889/head
authorMatt Kohl <mattkohl@users.noreply.github.com>
Fri, 4 Oct 2019 05:56:50 +0000 (06:56 +0100)
committerGitHub <noreply@github.com>
Fri, 4 Oct 2019 05:56:50 +0000 (06:56 +0100)
doc/build/faq/performance.rst

index b35ee38d77e5b6799dd457e6f4965d61f0e87a60..c30e96abbae99d54ff1aa9facac095c7b072a68f 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