|
2 | 2 | # Copyright 2021- Python Language Server Contributors. |
3 | 3 |
|
4 | 4 | import functools |
| 5 | +import importlib.metadata |
5 | 6 | import io |
6 | 7 | import logging |
7 | 8 | import os |
|
11 | 12 | from contextlib import contextmanager |
12 | 13 | from threading import RLock |
13 | 14 | from typing import Callable, Optional |
14 | | -import importlib.metadata |
15 | 15 |
|
16 | 16 | import jedi |
17 | 17 |
|
@@ -394,15 +394,15 @@ def close(self) -> None: |
394 | 394 |
|
395 | 395 |
|
396 | 396 | class Document: |
397 | | - DO_NOT_PRELOAD_MODULES = ['attrs', 'backcall', 'bleach', 'certifi', 'chardet', 'cycler', 'decorator', 'defusedxml', |
398 | | - 'docopt', 'entrypoints', 'idna', 'importlib-metadata', 'ipykernel', 'ipython-genutils', |
399 | | - 'ipython', 'ipywidgets', 'jedi', 'jinja2', 'joblib', 'jsonschema', 'jupyter-client', |
400 | | - 'jupyter-core', 'markupsafe', 'mistune', 'nbconvert', 'nbformat', 'notebook', 'packaging', |
401 | | - 'pandocfilters', 'parso', 'pexpect', 'pickleshare', 'pip', 'pipreqs', 'pluggy', |
402 | | - 'prometheus-client', 'prompt-toolkit', 'ptyprocess', 'pygments', 'pyparsing', |
403 | | - 'pyrsistent', 'python-dateutil', 'python-jsonrpc-server', 'python-language-server', |
404 | | - 'pytz', 'pyzmq', 'send2trash', 'setuptools', 'six', 'terminado', 'testpath', |
405 | | - 'threadpoolctl', 'tornado', 'traitlets', 'ujson', 'wcwidth', 'webencodings', 'wheel', |
| 397 | + DO_NOT_PRELOAD_MODULES = ['attrs', 'backcall', 'bleach', 'certifi', 'chardet', 'cycler', 'decorator', 'defusedxml', |
| 398 | + 'docopt', 'entrypoints', 'idna', 'importlib-metadata', 'ipykernel', 'ipython-genutils', |
| 399 | + 'ipython', 'ipywidgets', 'jedi', 'jinja2', 'joblib', 'jsonschema', 'jupyter-client', |
| 400 | + 'jupyter-core', 'markupsafe', 'mistune', 'nbconvert', 'nbformat', 'notebook', 'packaging', |
| 401 | + 'pandocfilters', 'parso', 'pexpect', 'pickleshare', 'pip', 'pipreqs', 'pluggy', |
| 402 | + 'prometheus-client', 'prompt-toolkit', 'ptyprocess', 'pygments', 'pyparsing', |
| 403 | + 'pyrsistent', 'python-dateutil', 'python-jsonrpc-server', 'python-language-server', |
| 404 | + 'pytz', 'pyzmq', 'send2trash', 'setuptools', 'six', 'terminado', 'testpath', |
| 405 | + 'threadpoolctl', 'tornado', 'traitlets', 'ujson', 'wcwidth', 'webencodings', 'wheel', |
406 | 406 | 'widgetsnbextension', 'yarg', 'zipp'] |
407 | 407 |
|
408 | 408 |
|
|
0 commit comments