Skip to content

Commit fa25358

Browse files
committed
deprecate passwd and db
1 parent ceb1558 commit fa25358

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

MySQLdb/connections.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ def __init__(self, *args, **kwargs):
6262
:param str host: host to connect
6363
:param str user: user to connect as
6464
:param str password: password to use
65-
:param str passwd: alias of password, for backward compatibility
65+
:param str passwd: alias of password (deprecated)
6666
:param str database: database to use
67-
:param str db: alias of database, for backward compatibility
67+
:param str db: alias of database (deprecated)
6868
:param int port: TCP/IP port to connect to
6969
:param str unix_socket: location of unix_socket to use
7070
:param dict conv: conversion dictionary, see MySQLdb.converters

doc/user_guide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ connect(parameters...)
277277
user
278278
user to authenticate as. Default: current effective user.
279279

280-
passwd
280+
password
281281
password to authenticate with. Default: no password.
282282

283-
db
283+
database
284284
database to use. Default: no default database.
285285

286286
port

0 commit comments

Comments
 (0)