(self, rhs)
Equality with another mode or mode name.
Equality with another mode or mode name.
Equality with another mode or mode name .
def __eq__(self, rhs):
        """Equality with another mode or mode name."""
        if isinstance(rhs, VideoMode):
            return self.name == rhs.name
        else:
            return self.name == rhs
def __eq__ ( self , rhs ) : if isinstance ( rhs , VideoMode ) : return self . name == rhs . name else : return self . name == rhs