]> granicus.if.org Git - python/commitdiff
Add optional argument to help().
authorGuido van Rossum <guido@python.org>
Fri, 3 Apr 1998 17:03:13 +0000 (17:03 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 3 Apr 1998 17:03:13 +0000 (17:03 +0000)
Lib/smtplib.py

index 24e46ad96cee3d789567f9b1961b7d35ef5cb809..6a12621a24bafb7f8682080ce33317c56e4d4152 100755 (executable)
@@ -150,9 +150,9 @@ class SMTP:
         self.helo_resp=msg
         return code
 
-    def help(self):
+    def help(self, args=''):
         """ SMTP 'help' command. Returns help text from server """
-        self.putcmd("help")
+        self.putcmd("help", args)
         (code,msg)=self.getreply()
         return msg