logging_format/visitor.py
def is_str_exception(self, node):
        """
        Checks if the node is the expression str(e) or unicode(e), where e is an exception name from an except block

        """
        return (
            isinstance(node, Call)
            and isinstance(node.func, Name)
            and node.func.id in ('str', 'unicode')
            and node.args
            and self.is_bare_exception(node.args[0])
        )
def is_str_exception(self, node):
        """
        Checks if the node is the expression str(e) or unicode(e), where e is an exception name from an except block

        """
        return (
            isinstance(node, Call)
            and isinstance(node.func, Name)
            and node.func.id in ('str', 'unicode')
            and node.args
            and self.is_bare_exception(node.args[0])
        )
def is_str_exception ( self , node ) : return ( isinstance ( node , Call ) and isinstance ( node . func , Name ) and node . func . id in ( 'str' , 'unicode' ) and node . args and self . is_bare_exception ( node . args [ 0 ] ) )
Checks if the node is the expression str(e) or unicode(e), where e is an exception name from an except block
Checks if the node is the expression str ( e ) or unicode ( e ) where e is an exception name from an except block