diff options
author | Gord Thompson <gord@gordthompson.com> | 2022-02-24 12:07:26 -0700 |
---|---|---|
committer | Gord Thompson <gord@gordthompson.com> | 2022-02-24 12:11:06 -0700 |
commit | 0353a9db76db6a46fa63d99a1d05c5cac45ea460 (patch) | |
tree | 9f77b99568dc233669f6a1a6b99ab2eb210d9467 /lib/sqlalchemy/sql/_elements_constructors.py | |
parent | 381894b50ea7e16b4950ecbdda72c0fa45de8d1c (diff) | |
download | sqlalchemy-0353a9db76db6a46fa63d99a1d05c5cac45ea460.tar.gz |
Fix invalid escape sequence in docs
Current version of this code example will emit an
"invalid escape sequence" DeprecationWarning
Change-Id: Id753139b1661f78d6b3ba86b7ada181b693a562e
Diffstat (limited to 'lib/sqlalchemy/sql/_elements_constructors.py')
-rw-r--r-- | lib/sqlalchemy/sql/_elements_constructors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/_elements_constructors.py b/lib/sqlalchemy/sql/_elements_constructors.py index 4132ac679..4f6ff0688 100644 --- a/lib/sqlalchemy/sql/_elements_constructors.py +++ b/lib/sqlalchemy/sql/_elements_constructors.py @@ -1403,7 +1403,7 @@ def text(text): For SQL statements where a colon is required verbatim, as within an inline string, use a backslash to escape:: - t = text("SELECT * FROM users WHERE name='\:username'") + t = text(r"SELECT * FROM users WHERE name='\:username'") The :class:`_expression.TextClause` construct includes methods which can |