diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-11-28 15:38:27 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-11-28 16:11:06 +0000 |
commit | a0229cff8252c07eddf22626a65e3f2967e2b037 (patch) | |
tree | f69f6e5f38c7f2100241a37ca6a5e98cca6c5e5f /lib | |
parent | 60b1517c5590ec0addc60d50174d0e96566582e0 (diff) | |
download | psycopg2-a0229cff8252c07eddf22626a65e3f2967e2b037.tar.gz |
Documentation tweaked to omit Python 2.6 distinctions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sql.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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:: |