yandextank/plugins/Console/screen.py
def clean_len(self, line):
        '''  Calculate wisible length of string  '''
        if isinstance(line, basestring):
            return len(self.screen.markup.clean_markup(line))
        elif isinstance(line, tuple) or isinstance(line, list):
            markups = self.screen.markup.get_markup_vars()
            length = 0
            for i in line:
                if i not in markups:
                    length += len(i)
            return length
def clean_len(self, line):
        '''  Calculate wisible length of string  '''
        if isinstance(line, basestring):
            return len(self.screen.markup.clean_markup(line))
        elif isinstance(line, tuple) or isinstance(line, list):
            markups = self.screen.markup.get_markup_vars()
            length = 0
            for i in line:
                if i not in markups:
                    length += len(i)
            return length
def clean_len ( self , line ) : if isinstance ( line , basestring ) : return len ( self . screen . markup . clean_markup ( line ) ) elif isinstance ( line , tuple ) or isinstance ( line , list ) : markups = self . screen . markup . get_markup_vars ( ) length = 0 for i in line : if i not in markups : length += len ( i ) return length
Calculate wisible length of string
Calculate wisible length of string