From 2e35cdea6ca3cdad3c111d1ca927d70dc29f9771 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 29 Dec 2020 18:27:07 +0900 Subject: [PATCH] Update doc --- README.rst | 6 +++--- doc/sources/python-apiref.rst | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.rst b/README.rst index 87f6ce4f..c5c2eaa7 100644 --- a/README.rst +++ b/README.rst @@ -112,7 +112,7 @@ libnghttp2_asio C++ library requires the following packages: The Python bindings require the following packages: * cython >= 0.19 -* python >= 2.7 +* python >= 3.8 * python-setuptools If you are using Ubuntu 16.04 LTS (Xenial Xerus) or Debian 8 (jessie) @@ -1422,7 +1422,7 @@ The extension module is called ``nghttp2``. determined by the ``configure`` script. If the detected Python version is not what you expect, specify a path to Python executable in a ``PYTHON`` variable as an argument to configure script (e.g., ``./configure -PYTHON=/usr/bin/python3.5``). +PYTHON=/usr/bin/python3.8``). The following example code illustrates basic usage of the HPACK compressor and decompressor in Python: @@ -1494,7 +1494,7 @@ BaseRequestHandler usage: .. code-block:: python - #!/usr/bin/env python + #!/usr/bin/env python3 import io, ssl import nghttp2 diff --git a/doc/sources/python-apiref.rst b/doc/sources/python-apiref.rst index d64b43cc..92fab33f 100644 --- a/doc/sources/python-apiref.rst +++ b/doc/sources/python-apiref.rst @@ -13,7 +13,7 @@ The extension module is called ``nghttp2``. determined by configure script. If the detected Python version is not what you expect, specify a path to Python executable in ``PYTHON`` variable as an argument to configure script (e.g., ``./configure -PYTHON=/usr/bin/python3.5``). +PYTHON=/usr/bin/python3.8``). HPACK API --------- @@ -137,14 +137,14 @@ HTTP/2 servers .. note:: We use :py:mod:`asyncio` for HTTP/2 server classes, and ALPN. - Therefore, Python 3.5 or later is required to use these objects. - To explicitly configure nghttp2 build to use Python 3.5, specify - the ``PYTHON`` variable to the path to Python 3.5 executable when + Therefore, Python 3.8 or later is required to use these objects. + To explicitly configure nghttp2 build to use Python 3.8, specify + the ``PYTHON`` variable to the path to Python 3.8 executable when invoking configure script like this: .. code-block:: text - $ ./configure PYTHON=/usr/bin/python3.5 + $ ./configure PYTHON=/usr/bin/python3.8 .. py:class:: HTTP2Server(address, RequestHandlerClass, ssl=None) @@ -336,7 +336,7 @@ The following example illustrates :py:class:`HTTP2Server` and .. code-block:: python - #!/usr/bin/env python + #!/usr/bin/env python3 import io, ssl @@ -367,7 +367,7 @@ response body generation. This is simplified reverse proxy: .. code-block:: python - #!/usr/bin/env python + #!/usr/bin/env python3 import ssl import os