summaryrefslogtreecommitdiff
path: root/Mailman/smtplib.py
diff options
context:
space:
mode:
authorklm1998-07-17 15:49:51 +0000
committerklm1998-07-17 15:49:51 +0000
commitbe8e440f36b31e0e0067b49403f762f799049b60 (patch)
tree255037bb16ac9cdc2934adfb75c12a6c43d24d7d /Mailman/smtplib.py
parent0d3d21f1739cfaa8919f43da075cb0ecfc34cd67 (diff)
downloadmailman-be8e440f36b31e0e0067b49403f762f799049b60.tar.gz
mailman-be8e440f36b31e0e0067b49403f762f799049b60.tar.zst
mailman-be8e440f36b31e0e0067b49403f762f799049b60.zip
.getresp(): Moved setting of self.lastresp to before the impunity
return - despite the fact that lastresp is not apparently used anywhere, i'm not ready to just yank it, and so it might as well be in the right place.
Diffstat (limited to 'Mailman/smtplib.py')
-rw-r--r--Mailman/smtplib.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/Mailman/smtplib.py b/Mailman/smtplib.py
index aa565964b..d7640d3c5 100644
--- a/Mailman/smtplib.py
+++ b/Mailman/smtplib.py
@@ -30,10 +30,14 @@ from socket import *
import string, types
## DEBUG ...
-#import sys
-#from Mailman.Logging.StampedLogger import StampedLogger
-#sys.error = StampedLogger("debug", label = 'smtplib', manual_reprime=1)
-#sys.error.write("smtplib got debug\n")
+## import sys
+## try:
+## from Mailman.Logging.StampedLogger import StampedLogger
+## sys.error = StampedLogger("debug", label = 'smtplib', manual_reprime=1)
+## sys.error.write("smtplib got debug\n")
+## sys.error.flush()
+## except:
+## pass
## ... DEBUG
SMTP_PORT = 25
@@ -118,9 +122,9 @@ class SmtpConnection:
def getresp(self, impunity=0):
resp = self.getmultiline()
+ self.lastresp = resp[:3]
if impunity:
return resp
- self.lastresp = resp[:3]
c = resp[:1]
if c == '4':
raise error_temp, resp