(self, errors=True, events=True, file=None, logger=None,
                 prefix=None, trim=None, **kwargs)
initializes x; see x.__class__.__doc__ for signature
initializes x; see x.__class__.__doc__ for signature
initializes x ; see x . __class__ . __doc__ for signature
def __init__(self, errors=True, events=True, file=None, logger=None,
                 prefix=None, trim=None, **kwargs):
        "initializes x; see x.__class__.__doc__ for signature"

        super(Debugger, self).__init__()

        self._errors = errors
        self._events = events

        if isinstance(file, str):
            self.file = open(os.path.abspath(os.path.expanduser(file)), "a")
        elif hasattr(file, "write"):
            self.file = file
        else:
            self.file = sys.stderr

        self.logger = logger
        self.prefix = prefix
        self.trim = trim

        self.IgnoreEvents.extend(kwargs.get("IgnoreEvents", []))
        self.IgnoreChannels.extend(kwargs.get("IgnoreChannels", []))
def __init__ ( self , errors = True , events = True , file = None , logger = None , prefix = None , trim = None , * * kwargs ) : super ( Debugger , self ) . __init__ ( ) self . _errors = errors self . _events = events if isinstance ( file , str ) : self . file = open ( os . path . abspath ( os . path . expanduser ( file ) ) , "a" ) elif hasattr ( file , "write" ) : self . file = file else : self . file = sys . stderr self . logger = logger self . prefix = prefix self . trim = trim self . IgnoreEvents . extend ( kwargs . get ( "IgnoreEvents" , [ ] ) ) self . IgnoreChannels . extend ( kwargs . get ( "IgnoreChannels" , [ ] ) )