src/mailto.py
def do_toggle(self):
        """Toggle settings. Dispatch to appropriate method."""
        what = self.args.query
        log.debug('Toggling %r ...', what)

        methname = 'toggle_{}'.format(what)

        if not hasattr(self, methname):
            msg = 'Unknown settings toggle : {!r}'.format(what)
            log.error(msg)
            raise ValueError(msg)

        meth = getattr(self, methname)
        return meth()
Toggle settings. Dispatch to appropriate method.
Toggle settings. Dispatch to appropriate method.
Toggle settings . Dispatch to appropriate method .
def do_toggle(self):
        what = self.args.query
        log.debug('Toggling %r ...', what)
        methname = 'toggle_{}'.format(what)
        if not hasattr(self, methname):
            msg = 'Unknown settings toggle : {!r}'.format(what)
            log.error(msg)
            raise ValueError(msg)
        meth = getattr(self, methname)
        return meth()
def do_toggle ( self ) : what = self . args . query log . debug ( 'Toggling %r ...' , what ) methname = 'toggle_{}' . format ( what ) if not hasattr ( self , methname ) : msg = 'Unknown settings toggle : {!r}' . format ( what ) log . error ( msg ) raise ValueError ( msg ) meth = getattr ( self , methname ) return meth ( )
Toggle settings.
Toggle settings .
"""Toggle settings. Dispatch to appropriate method."""
self