def strip_trailing_whitespace(content):
 return re.sub(u' +\n', u'\n', content)

def strip_trailing_whitespace ( content ) : return re . sub ( u' +\n' , u'\n' , content )
seems to be some inconsistencies re .