summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-10-17 23:32:08 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-10-17 23:32:08 (GMT)
commitd2ff243b3829d17b0a6a9ac5eab0c522f517f466 (patch)
tree6653bfa4a6deff9651ed7da99742b14d2082e8a9 /Lib/email
parent77770bdaa80ad0b6e976f11135c7c865efe23ae8 (diff)
parent685b3495e1fd9853b1ca5960db3e3cb705920d4f (diff)
downloadcpython-d2ff243b3829d17b0a6a9ac5eab0c522f517f466.zip
cpython-d2ff243b3829d17b0a6a9ac5eab0c522f517f466.tar.gz
cpython-d2ff243b3829d17b0a6a9ac5eab0c522f517f466.tar.bz2
Merge: #21991: make headerregistry params property MappingProxyType.
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/headerregistry.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/email/headerregistry.py b/Lib/email/headerregistry.py
index 2bdae6c..468ca9e 100644
--- a/Lib/email/headerregistry.py
+++ b/Lib/email/headerregistry.py
@@ -7,6 +7,7 @@ Eventually HeaderRegistry will be a public API, but it isn't yet,
and will probably change some before that happens.
"""
+from types import MappingProxyType
from email import utils
from email import errors
@@ -456,7 +457,7 @@ class ParameterizedMIMEHeader:
@property
def params(self):
- return self._params.copy()
+ return MappingProxyType(self._params)
class ContentTypeHeader(ParameterizedMIMEHeader):