@@ -135,8 +135,6 @@ class Connection:
135
135
:param ssl_verify_cert: Set to true to check the validity of server certificates
136
136
:param ssl_verify_identity: Set to true to check the server's identity
137
137
:param read_default_group: Group to read from in the configuration file.
138
- :param compress: Not supported
139
- :param named_pipe: Not supported
140
138
:param autocommit: Autocommit mode. None means use server default. (default: False)
141
139
:param local_infile: Boolean to enable the use of LOAD DATA LOCAL command. (default: False)
142
140
:param max_allowed_packet: Max size of packet sent to server in bytes. (default: 16MB)
@@ -149,9 +147,11 @@ class Connection:
149
147
an argument. For the dialog plugin, a prompt(echo, prompt) method can be used
150
148
(if no authenticate method) for returning a string from the user. (experimental)
151
149
:param server_public_key: SHA256 authentication plugin public key value. (default: None)
152
- :param db: Alias for database. (for compatibility to MySQLdb)
153
- :param passwd: Alias for password. (for compatibility to MySQLdb)
154
150
:param binary_prefix: Add _binary prefix on bytes and bytearray. (default: False)
151
+ :param compress: Not supported
152
+ :param named_pipe: Not supported
153
+ :param db: **DEPRECATED** Alias for database.
154
+ :param passwd: **DEPRECATED** Alias for password.
155
155
156
156
See `Connection <https://www.python.org/dev/peps/pep-0249/#connection-objects>`_ in the
157
157
specification.
@@ -205,12 +205,16 @@ def __init__(
205
205
db = None , # deprecated
206
206
):
207
207
if db is not None and database is None :
208
- warnings .warn ("'db' is deprecated, use 'database'" , DeprecationWarning , 3 )
208
+ # We will raise warining in 2022 or later.
209
+ # See https://github.com/PyMySQL/PyMySQL/issues/939
210
+ # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3)
209
211
database = db
210
212
if passwd is not None and not password :
211
- warnings .warn (
212
- "'passwd' is deprecated, use 'password'" , DeprecationWarning , 3
213
- )
213
+ # We will raise warining in 2022 or later.
214
+ # See https://github.com/PyMySQL/PyMySQL/issues/939
215
+ # warnings.warn(
216
+ # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3
217
+ # )
214
218
password = passwd
215
219
216
220
if compress or named_pipe :
0 commit comments