def look_in_room(self, keyword):
        if self.pc.location:
            obj = self.pc.location.check_for_keyword(keyword)
            if obj:
                if self.alias == 'read':
                    return obj.description
                message = "You look at %s:\n%s" % (obj.name, obj.description)
                # This is a bit hackish -- npcs don't have a has_type attr, so we're making sure
                # we have an item by process of elimination. If we have an item, and
                # that item has a container type, we should display its contents.
                if hasattr(obj, 'has_type') and obj.has_type('container'):
                    message += '\n' + obj.item_types.get('container').display_inventory()
                return message
        return None
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/commands/commands.py/Look.look_in_room/original