diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-05-31 22:00:45 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-05-31 22:00:45 (GMT) |
commit | 1be413e366be7bed676074b7f395b2a20a10ac47 (patch) | |
tree | 1fb22c928ffb044049b606de24ab68035a941b1f /Lib/email/policy.py | |
parent | 8e0ed333b9d52477a90ed36fdf0eb31c3d432e91 (diff) | |
download | cpython-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.py | 3 |
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): """+ |