]> granicus.if.org Git - python/commit
Don't crash if there exists an EGG-INFO directory on sys.path (#13667)
authorAnthony Sottile <asottile@umich.edu>
Thu, 30 May 2019 00:13:12 +0000 (17:13 -0700)
committerBarry Warsaw <barry@python.org>
Thu, 30 May 2019 00:13:11 +0000 (17:13 -0700)
commit80878312316bfb4011157f13cf040f6d885f808b
tree6d3b9bda59377738f9b418c96e65ce990f6a9aa2
parent29cb21ddb92413931e473eb799a02e2d8cdf4a45
Don't crash if there exists an EGG-INFO directory on sys.path (#13667)

* Don't crash if there exists an EGG-INFO directory on sys.path

cross-port of https://gitlab.com/python-devs/importlib_metadata/merge_requests/72

* Also catch PermissionError for windows
Lib/importlib/metadata/__init__.py
Lib/test/test_importlib/test_main.py