gooderp18绿色标准版
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

13 行
409B

  1. from email._policybase import _PolicyBase
  2. def patch_email():
  3. def policy_clone(self, **kwargs):
  4. for arg in kwargs:
  5. if arg.startswith("_") or "__" in arg:
  6. raise AttributeError(f"{self.__class__.__name__!r} object has no attribute {arg!r}")
  7. return orig_policy_clone(self, **kwargs)
  8. orig_policy_clone = _PolicyBase.clone
  9. _PolicyBase.clone = policy_clone
上海开阖软件有限公司 沪ICP备12045867号-1