cara menghapus garis kosong dari string di python

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