summaryrefslogtreecommitdiffstats
path: root/docs/pages
diff options
context:
space:
mode:
authorJonathan Slenders <jonathan@slenders.be>2018-01-13 18:15:25 +0100
committerJonathan Slenders <jonathan@slenders.be>2018-01-13 18:15:25 +0100
commit3a09c2039ff930146339b3d75d9fc76195bb6c98 (patch)
tree363095bffb6b6612230412e863ac47ec282ebc59 /docs/pages
parent26ea22a1ad61454c37afb463a71ba1aa6ac5b677 (diff)
Added documentation about 'AbortAction' and 'create_eventloop' to upgrading.rst.
Diffstat (limited to 'docs/pages')
-rw-r--r--docs/pages/upgrading.rst19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/pages/upgrading.rst b/docs/pages/upgrading.rst
index 898f1611..2d06bc90 100644
--- a/docs/pages/upgrading.rst
+++ b/docs/pages/upgrading.rst
@@ -112,6 +112,25 @@ Upgrading
More guidelines on how to upgrade will follow.
+`AbortAction` has been removed
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Prompt_toolkit 1.0 had an argument ``abort_action`` for both the
+``Application`` class as well as for the ``prompt`` function. This has been
+removed. The recommended way to handle this now is by capturing
+``KeyboardInterrupt`` and ``EOFError`` manually.
+
+
+Calling `create_eventloop` usually not required anymore
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Prompt_toolkit 2.0 will automatically create the appropriate event loop when
+it's needed for the first time. There is no need to create one and pass it
+around. If you want to run an application on top of asyncio (without using an
+executor), it still needs to be activated by calling
+:func:`~prompt_toolkit.eventloop.use_asyncio_event_loop` at the beginning.
+
+
Pygments styles and tokens
^^^^^^^^^^^^^^^^^^^^^^^^^^