def strip_common_indent(lines):
 lines = [x for x in lines if (x.strip() != u'')]
 minindent = min([len(_match_indent(x).group(0)) for x in lines])
 lines = [x[minindent:] for x in lines]
 return lines

def strip_common_indent ( lines ) : lines = [ x for x in lines if ( x . strip ( ) != u'' ) ] minindent = min ( [ len ( _match_indent ( x ) . group ( 0 ) ) for x in lines ] ) lines = [ x [ minindent : ] for x in lines ] return lines
strips empty lines and common indentation from the list of strings given in lines .