(self, argname, strval)
return True
Convert bool string to bool. Empty string (i.e. specified) means True.
Convert bool string to bool. Empty string (i.e. specified) means True.
Convert bool string to bool . Empty string ( i . e . specified ) means True .
def _to_bool(self, argname, strval):
        """Convert bool string to bool. Empty string (i.e. specified) means True."""
        if strval == u'':
            return True
        if strval.upper() in TRUES:
            return True
        elif strval.upper() in FALSES:
            return False
        else:
            logging.warning(
                u'Boolean option `%s=%s` interpreted as `%s=True`',
                argname, strval, argname
            )
        return True
def _to_bool ( self , argname , strval ) : if strval == u'' : return True if strval . upper ( ) in TRUES : return True elif strval . upper ( ) in FALSES : return False else : logging . warning ( u'Boolean option `%s=%s` interpreted as `%s=True`' , argname , strval , argname ) return True