def replace_mime_type_rules(self, rules):
    '\n        Return a shallow copy of this policy with new MIME type rules from\n        ``doc``.\n\n        :param list rules: MIME type rules in database document form.\n        :returns: A new policy.\n        :rtype: Policy\n        '
    policy = Policy.__new__(Policy)
    policy.authentication = self.authentication
    policy.captcha_solver = self.captcha_solver
    policy.limits = self.limits
    policy.mime_type_rules = PolicyMimeTypeRules(rules)
    policy.proxy_rules = self.proxy_rules
    policy.robots_txt = self.robots_txt
    policy.url_normalization = self.url_normalization
    policy.url_rules = self.url_rules
    policy.user_agents = self.user_agents
    return policy
Return a shallow copy of this policy with new MIME type rules from
``doc``.

:param list rules: MIME type rules in database document form.
:returns: A new policy.
:rtype: Policy
def replace_mime_type_rules(self, rules):
    '\n        Return a shallow copy of this policy with new MIME type rules from\n        ``doc``.\n\n        :param list rules: MIME type rules in database document form.\n        :returns: A new policy.\n        :rtype: Policy\n        '
    policy = Policy.__new__(Policy)
    policy.authentication = self.authentication
    policy.captcha_solver = self.captcha_solver
    policy.limits = self.limits
    policy.mime_type_rules = PolicyMimeTypeRules(rules)
    policy.proxy_rules = self.proxy_rules
    policy.robots_txt = self.robots_txt
    policy.url_normalization = self.url_normalization
    policy.url_rules = self.url_rules
    policy.user_agents = self.user_agents
    return policy