diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2015-10-26 19:40:29 +0100 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2015-10-26 19:40:29 +0100 |
| commit | e6a51a0bc3f87e284de74cec838d3ee98c2f9cf5 (patch) | |
| tree | 8ac469820a09c31e9e49543ecbbbdeebad53c85e /docs/source | |
| parent | 8bfdaf3cc37ffe48a60c7f4ee5d5e99d0b07e696 (diff) | |
| download | sqlparse-e6a51a0bc3f87e284de74cec838d3ee98c2f9cf5.tar.gz | |
Use compat module for single Python 2/3 code base.
This change includes minor fixes and code cleanup too.
Diffstat (limited to 'docs/source')
| -rw-r--r-- | docs/source/intro.rst | 8 |
1 files changed, 4 insertions, 4 deletions
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`. |
