summaryrefslogtreecommitdiff
path: root/lib/sql.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-11-28 15:38:27 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-11-28 16:11:06 +0000
commita0229cff8252c07eddf22626a65e3f2967e2b037 (patch)
treef69f6e5f38c7f2100241a37ca6a5e98cca6c5e5f /lib/sql.py
parent60b1517c5590ec0addc60d50174d0e96566582e0 (diff)
downloadpsycopg2-a0229cff8252c07eddf22626a65e3f2967e2b037.tar.gz
Documentation tweaked to omit Python 2.6 distinctions
Diffstat (limited to 'lib/sql.py')
-rw-r--r--lib/sql.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sql.py b/lib/sql.py
index d89e117..5dfe7c8 100644
--- a/lib/sql.py
+++ b/lib/sql.py
@@ -203,12 +203,12 @@ class SQL(Composable):
:rtype: `Composed`
The method is similar to the Python `str.format()` method: the string
- template supports auto-numbered (``{}``, only available from Python
- 2.7), numbered (``{0}``, ``{1}``...), and named placeholders
- (``{name}``), with positional arguments replacing the numbered
- placeholders and keywords replacing the named ones. However placeholder
- modifiers (``{0!r}``, ``{0:<10}``) are not supported. Only
- `!Composable` objects can be passed to the template.
+ template supports auto-numbered (``{}``), numbered (``{0}``,
+ ``{1}``...), and named placeholders (``{name}``), with positional
+ arguments replacing the numbered placeholders and keywords replacing
+ the named ones. However placeholder modifiers (``{0!r}``, ``{0:<10}``)
+ are not supported. Only `!Composable` objects can be passed to the
+ template.
Example::