(self, result)
Fix multiple statements on one line def
Fix multiple statements on one line def
Fix multiple statements on one line def
def fix_e704(self, result):
        """Fix multiple statements on one line def"""
        (line_index, _, target) = get_index_offset_contents(result,
                                                            self.source)
        match = STARTSWITH_DEF_REGEX.match(target)
        if match:
            self.source[line_index] = '{0}\n{1}{2}'.format(
                match.group(0),
                _get_indentation(target) + self.indent_word,
                target[match.end(0):].lstrip())
def fix_e704 ( self , result ) : ( line_index , _ , target ) = get_index_offset_contents ( result , self . source ) match = STARTSWITH_DEF_REGEX . match ( target ) if match : self . source [ line_index ] = '{0}\n{1}{2}' . format ( match . group ( 0 ) , _get_indentation ( target ) + self . indent_word , target [ match . end ( 0 ) : ] . lstrip ( ) )