Como remover linhas em branco da corda em python

re.sub(r'^$\n', '', s, flags=re.MULTILINE)
Smoggy Skunk