def __call__(self, content_type):
<EOL>type_name = media_types[content_type]<EOL>xlator = self.translators[type_name]<EOL>if inspect.isclass(xlator):<EOL><INDENT>return xlator(type_name, content_type)<EOL><DEDENT>return functools.partial(xlator, type_name, content_type)<EOL>
Select the translator corresponding to the given content type.