Strip trailing bytes contained in the argument. If the argument is omitted or None, strip trailing ASCII whitespace.
>>> b' spacious '.rstrip() b' spacious' >>> b'mississippi'.rstrip(b'ipz') b'mississ'
builtins/bytes.rstrip
bytes.rstrip