<s> from __future__ import print_function , unicode_literals <EOL> def Override ( classes ) : <EOL> """<STR_LIT>""" <EOL> def wrapped ( func ) : <EOL> try : <EOL> real_classes = tuple ( ( i for i in classes ) ) <EOL> except TypeError : <EOL> real_classes = ( classes , ) <EOL> found = False <EOL> for i in real_classes : <EOL> if hasattr ( i , func . __name__ ) : <EOL> found = True <EOL> break <EOL> if not found : <EOL> raise TypeError ( "<STR_LIT>" % ( func . __name__ , real_classes ) ) <EOL> else : <EOL> return func <EOL> return wrapped </s>
