]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Changed urllib.quote_plus to urllib.parse.quote_plus (Python 3 version) unconditionally. 4546/head
authorericdeansanchez <ericdeansanchez@berkeley.edu>
Mon, 18 Mar 2019 14:39:39 +0000 (07:39 -0700)
committerericdeansanchez <ericdeansanchez@berkeley.edu>
Mon, 18 Mar 2019 14:39:39 +0000 (07:39 -0700)
lib/sqlalchemy/dialects/mssql/pyodbc.py

index 8ee32882725d85fd55a2273d6ee2fe820d39cfb0..02d70a3731407483ddef5de6649393310ecc1564 100644 (file)
@@ -56,10 +56,10 @@ Pass through exact Pyodbc string
 A PyODBC connection string can also be sent exactly as specified in
 `ConnectionStrings <https://code.google.com/p/pyodbc/wiki/ConnectionStrings>`_
 into the driver using the parameter ``odbc_connect``.  The delimeters must be
-URL escaped, however, as illustrated below using ``urllib.quote_plus``::
+URL escaped, however, as illustrated below using ``urllib.parse.quote_plus``::
 
     import urllib
-    params = urllib.quote_plus("DRIVER={SQL Server Native Client 10.0};SERVER=dagger;DATABASE=test;UID=user;PWD=password")
+    params = urllib.parse.quote_plus("DRIVER={SQL Server Native Client 10.0};SERVER=dagger;DATABASE=test;UID=user;PWD=password")
 
     engine = create_engine("mssql+pyodbc:///?odbc_connect=%s" % params)