Python 3.6 embeddable doesn't have pydoc_data

This reinstates the import check for pydoc_data for now.

Specifically I looked in the following:
- python-3.6.8-embed-amd64.zip: missing pydoc_data
- python-3.7.8-embed-amd64.zip: present
- python-3.8.5-embed-amd64.zip: present
This commit is contained in:
Peter Law
2020-07-24 16:07:45 +01:00
parent 8f167be980
commit 480c352d33

View File

@@ -3,7 +3,11 @@ from contextlib import suppress
from jedi.inference.names import AbstractArbitraryName
from pydoc_data import topics as pydoc_topics
try:
from pydoc_data import topics as pydoc_topics
except ImportError:
# Python 3.6.8 embeddable does not have pydoc_data.
pydoc_topics = None
class KeywordName(AbstractArbitraryName):