dhunter/core/log.py
def strip_ansi(message):
        """Removes all ANSI control codes from given message string

        Args:
          message: string to be processed

        Returns:
          message string witn ANSI codes striped or None
        """
        if message is not None:
            pattern = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')
            return pattern.sub('', message)

        return ''
Removes all ANSI control codes from given message string

        Args:
          message: string to be processed

        Returns:
          message string witn ANSI codes striped or None
        
Removes all ANSI control codes from given message string
Removes all ANSI control codes from given message string
def strip_ansi(message):
        if message is not None:
            pattern = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')
            return pattern.sub('', message)
        return ''
def strip_ansi ( message ) : if message is not None : pattern = re . compile ( r'\x1B\[[0-?]*[ -/]*[@-~]' ) return pattern . sub ( '' , message ) return ''
Removes all ANSI control codes from given message string
Removes all ANSI control codes from given message string
"""Removes all ANSI control codes from given message string

        Args:
          message: string to be processed

        Returns:
          message string witn ANSI codes striped or None
        """
message string witn ANSI codes striped or None
message string witn ANSI codes striped or None
message
string to be processed
string to be processed