summaryrefslogtreecommitdiff
path: root/pkg_resources
diff options
context:
space:
mode:
authorMatthew Suozzo <msuozzo@google.com>2022-01-06 18:45:32 -0500
committerMatthew Suozzo <msuozzo@google.com>2022-01-06 18:45:32 -0500
commit6c18ba25ccdc3f3efc38e7b2c8293b89e4498ecf (patch)
treea5ec20f4ef7e11e771e4c5955fb5981c69e06694 /pkg_resources
parent71554cb5562ac6f0dfda81f87a4fc55e400aed97 (diff)
downloadpython-setuptools-git-6c18ba25ccdc3f3efc38e7b2c8293b89e4498ecf.tar.gz
Use MappingProxyType to ensure immutability.
Diffstat (limited to 'pkg_resources')
-rw-r--r--pkg_resources/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index 6d0e19d6..f98516d1 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -3047,7 +3047,7 @@ class DistInfoDistribution(Distribution):
if not req.marker or req.marker.evaluate({'extra': extra}):
yield req
- common = dict.fromkeys(reqs_for_extra(None))
+ common = types.MappingProxyType(dict.fromkeys(reqs_for_extra(None)))
dm[None].extend(common)
for extra in self._parsed_pkg_info.get_all('Provides-Extra') or []: