From e6a51a0bc3f87e284de74cec838d3ee98c2f9cf5 Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Mon, 26 Oct 2015 19:40:29 +0100 Subject: Use compat module for single Python 2/3 code base. This change includes minor fixes and code cleanup too. --- docs/source/intro.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/source/intro.rst b/docs/source/intro.rst index 76d8fba..2a2d27d 100644 --- a/docs/source/intro.rst +++ b/docs/source/intro.rst @@ -100,10 +100,10 @@ Each object can be converted back to a string at any time: .. code-block:: python - >>> unicode(stmt) # str(stmt) for Python 3 - u'select * from "someschema"."mytable" where id = 1' - >>> unicode(stmt.tokens[-1]) # or just the WHERE part - u'where id = 1' + >>> str(stmt) # str(stmt) for Python 3 + 'select * from "someschema"."mytable" where id = 1' + >>> str(stmt.tokens[-1]) # or just the WHERE part + 'where id = 1' Details of the returned objects are described in :ref:`analyze`. -- cgit v1.2.1