bs4.Comment.isspace

Comment.isspace() → bool

Return True if all characters in S are whitespace and there is at least one character in S, False otherwise.