[tor-commits] [bridgedb/develop] Account for missing keyword arguments.
phw at torproject.org
phw at torproject.org
Wed Feb 19 18:27:18 UTC 2020
commit 1b20e56ba1fbb8c90a500edf044cc2881fa856dc
Author: Philipp Winter <phw at nymity.ch>
Date: Wed Jan 29 17:18:30 2020 -0800
Account for missing keyword arguments.
This seems to be new in Python 3.5.
---
bridgedb/test/test_smtp.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bridgedb/test/test_smtp.py b/bridgedb/test/test_smtp.py
index 2a532b2..3fd06f3 100644
--- a/bridgedb/test/test_smtp.py
+++ b/bridgedb/test/test_smtp.py
@@ -44,7 +44,7 @@ LOCAL_SMTP_SERVER_PORT = 2525 # Must be the same as bridgedb's EMAIL_SMTP_PORT
class EmailServer(SMTPServer):
- def process_message(self, peer, mailfrom, rcpttos, data):
+ def process_message(self, peer, mailfrom, rcpttos, data, **kwargs):
''' Overridden from SMTP server, called whenever a message is received'''
self.message_queue.put(data)
More information about the tor-commits
mailing list