[CalendarServer-changes] [11280] CalendarServer/trunk/txdav/caldav/datastore/scheduling/imip/inbound .py

source_changes at macosforge.org source_changes at macosforge.org
Thu May 30 15:31:42 PDT 2013


Revision: 11280
          http://trac.calendarserver.org//changeset/11280
Author:   wsanchez at apple.com
Date:     2013-05-30 15:31:42 -0700 (Thu, 30 May 2013)
Log Message:
-----------
Clean up signature of emit()

Modified Paths:
--------------
    CalendarServer/trunk/txdav/caldav/datastore/scheduling/imip/inbound.py

Modified: CalendarServer/trunk/txdav/caldav/datastore/scheduling/imip/inbound.py
===================================================================
--- CalendarServer/trunk/txdav/caldav/datastore/scheduling/imip/inbound.py	2013-05-30 21:53:14 UTC (rev 11279)
+++ CalendarServer/trunk/txdav/caldav/datastore/scheduling/imip/inbound.py	2013-05-30 22:31:42 UTC (rev 11280)
@@ -49,11 +49,11 @@
 # specifically, "Unhandled unsolicited response" nonsense.
 #
 class IMAPLogger(LegacyLogger):
-    def emit(self, level, message, *args, **kwargs):
-        if message.startswith("Unhandled unsolicited response:"):
+    def emit(self, level, message=None, **kwargs):
+        if message is not None and message.startswith("Unhandled unsolicited response:"):
             return
 
-        super(IMAPLogger, self).emit(self, level, message, *args, **kwargs)
+        super(IMAPLogger, self).emit(self, level, message, **kwargs)
 
 imap4.log = IMAPLogger()
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130530/66457283/attachment.html>


More information about the calendarserver-changes mailing list