소스 검색

docs: changed user_name to username in docstrings

Mikael Koli 3 년 전
부모
커밋
43dc7d32be
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      redmail/email/__init__.py
  2. 1 1
      redmail/email/sender.py

+ 1 - 1
redmail/email/__init__.py

@@ -23,7 +23,7 @@ def send_email(*args, host:str, port:int, username:str=None, password:str=None,
         User to send the email with
     password : str
         Password of the user to send the email with
-    user_name : str
+    username : str
         Deprecated alias for username. Please use username instead.
     **kwargs : dict
         See redmail.EmailSender.send

+ 1 - 1
redmail/email/sender.py

@@ -241,7 +241,7 @@ class EmailSender:
                 email = EmailSender(
                     host='localhost', 
                     port=0, 
-                    user_name='me@example.com', 
+                    username='me@example.com', 
                     password='<PASSWORD>'
                 )
                 email.send(