summaryrefslogtreecommitdiffstats
path: root/Lib/email/policy.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-05-31 22:00:45 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-05-31 22:00:45 (GMT)
commit1be413e366be7bed676074b7f395b2a20a10ac47 (patch)
tree1fb22c928ffb044049b606de24ab68035a941b1f /Lib/email/policy.py
parent8e0ed333b9d52477a90ed36fdf0eb31c3d432e91 (diff)
downloadcpython-1be413e366be7bed676074b7f395b2a20a10ac47.zip
cpython-1be413e366be7bed676074b7f395b2a20a10ac47.tar.gz
cpython-1be413e366be7bed676074b7f395b2a20a10ac47.tar.bz2
Don't use metaclasses when class decorators can do the job.
Thanks to Nick Coghlan for pointing out that I'd forgotten about class decorators.
Diffstat (limited to 'Lib/email/policy.py')
-rw-r--r--Lib/email/policy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/email/policy.py b/Lib/email/policy.py
index bfffb45..32cad0d 100644
--- a/Lib/email/policy.py
+++ b/Lib/email/policy.py
@@ -2,7 +2,7 @@
code that adds all the email6 features.
"""
-from email._policybase import Policy, Compat32, compat32
+from email._policybase import Policy, Compat32, compat32, _extend_docstrings
from email.utils import _has_surrogates
from email.headerregistry import HeaderRegistry as HeaderRegistry
@@ -17,6 +17,7 @@ __all__ = [
'HTTP',
]
+@_extend_docstrings
class EmailPolicy(Policy):
"""+