Skip to content

Commit

Permalink
deprecate passwd and db
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Jan 8, 2021
1 parent ceb1558 commit fa25358
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions MySQLdb/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def __init__(self, *args, **kwargs):
:param str host: host to connect
:param str user: user to connect as
:param str password: password to use
:param str passwd: alias of password, for backward compatibility
:param str passwd: alias of password (deprecated)
:param str database: database to use
:param str db: alias of database, for backward compatibility
:param str db: alias of database (deprecated)
:param int port: TCP/IP port to connect to
:param str unix_socket: location of unix_socket to use
:param dict conv: conversion dictionary, see MySQLdb.converters
Expand Down
4 changes: 2 additions & 2 deletions doc/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,10 @@ connect(parameters...)
user
user to authenticate as. Default: current effective user.

passwd
password
password to authenticate with. Default: no password.

db
database
database to use. Default: no default database.

port
Expand Down

0 comments on commit fa25358

Please sign in to comment.