def last_two_blanks(src):
 if (not src):
  return False
 new_src = '\n'.join((['###\n'] + src.splitlines()[(-2):]))
 return (bool(last_two_blanks_re.match(new_src)) or bool(last_two_blanks_re2.match(new_src)))

def last_two_blanks ( src ) : if ( not src ) : return False new_src = '\n' . join ( ( [ '###\n' ] + src . splitlines ( ) [ ( - 2 ) : ] ) ) return ( bool ( last_two_blanks_re . match ( new_src ) ) or bool ( last_two_blanks_re2 . match ( new_src ) ) )
determine if the input source ends in two blanks .