diff options
author | LunarShaddow <aflyhorse@hotmail.com> | 2017-05-05 14:38:41 +0800 |
---|---|---|
committer | LunarShaddow <aflyhorse@hotmail.com> | 2017-05-05 14:38:41 +0800 |
commit | 8e17496421efe0db8dc52d3f25ca2ef6cc65aab4 (patch) | |
tree | fc077de88f3da9eed92ea49e3c884fe951486c75 /lib | |
parent | 69adef7ed56cbd3d37e41cc2a552976688f63acb (diff) | |
download | sqlalchemy-8e17496421efe0db8dc52d3f25ca2ef6cc65aab4.tar.gz |
remove ambiguous line breakers to help sphinx identify code block
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sqlalchemy/dialects/mysql/base.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py index dc7e3b369..f1d779e0d 100644 --- a/lib/sqlalchemy/dialects/mysql/base.py +++ b/lib/sqlalchemy/dialects/mysql/base.py @@ -205,8 +205,7 @@ Most MySQL DBAPIs offer the option to set the client character set for a connection. This is typically delivered using the ``charset`` parameter in the URL, such as:: - e = create_engine("mysql+pymysql://scott:tiger@localhost/\ -test?charset=utf8") + e = create_engine("mysql+pymysql://scott:tiger@localhost/test?charset=utf8") This charset is the **client character set** for the connection. Some MySQL DBAPIs will default this to a value such as ``latin1``, and some @@ -224,8 +223,7 @@ that includes codepoints more than three bytes in size, this new charset is preferred, if supported by both the database as well as the client DBAPI, as in:: - e = create_engine("mysql+pymysql://scott:tiger@localhost/\ -test?charset=utf8mb4") + e = create_engine("mysql+pymysql://scott:tiger@localhost/test?charset=utf8mb4") At the moment, up-to-date versions of MySQLdb and PyMySQL support the ``utf8mb4`` charset. Other DBAPIs such as MySQL-Connector and OurSQL @@ -2105,4 +2103,3 @@ class _DecodingRowProxy(object): return item.decode(self.charset) else: return item - |