Ticket #16376: 02-python-managesieve-debug_fix.patch

File 02-python-managesieve-debug_fix.patch, 647 bytes (added by gboyce@…, 16 years ago)

Patch to fix debug handling.

  • managesieve.py

    ==== //sandbox/gboyce/sieve/python-managesieve-0.3/managesieve.py#9 - /Users/gboyce/perforce/sandbox/sieve/python-managesieve-0.3/managesieve.py ====
    old new  
    1313
    1414__all__ = [ 'MANAGESIEVE', 'SIEVE_PORT', 'OK', 'NO', 'BYE', 'Debug']
    1515
    16 from imaplib import _log, _mesg
     16# XXX darky -- these are now in an IMAP4 class, and I don't think we
     17# should be using them.
     18#from imaplib import _log, _mesg
     19
     20import logging
     21log = logging.getLogger("managesieve")
     22def _log(message):
     23    log.debug(message)
     24_mesg = _log
    1725
    1826Debug = 0
    1927CRLF = '\r\n'