Scrapy, a fast high-level web crawling & scraping framework for Python.
scrapy.utils.console.DEFAULT_PYTHON_SHELLS: OrderedDict → dict (#5795)
Serhii Acaaeb235a08a
diff --git a/scrapy/utils/console.py b/scrapy/utils/console.pyindex 1bc0bd45f..4828c7767 100644--- a/scrapy/utils/console.py+++ b/scrapy/utils/console.py@@ -1,5 +1,4 @@from functools import wraps-from collections import OrderedDictdef _embed_ipython_shell(namespace={}, banner=''):@@ -63,12 +62,12 @@ def _embed_standard_shell(namespace={}, banner=''):return wrapper-DEFAULT_PYTHON_SHELLS = OrderedDict([- ('ptpython', _embed_ptpython_shell),- ('ipython', _embed_ipython_shell),- ('bpython', _embed_bpython_shell),- ('python', _embed_standard_shell),-])+DEFAULT_PYTHON_SHELLS = {+ 'ptpython': _embed_ptpython_shell,+ 'ipython': _embed_ipython_shell,+ 'bpython': _embed_bpython_shell,+ 'python': _embed_standard_shell,+}def get_shell_embed_func(shells=None, known_shells=None):