diff --git a/docs/index.rst b/docs/index.rst index 91efd25..84388e6 100755 --- a/docs/index.rst +++ b/docs/index.rst @@ -1048,7 +1048,7 @@ instance before you invoke the operation. When an operation with ``gpg`` is init ``python-gnupg`` buffers the data. At the end of the data stream, it will be called with a zero-length bytestring (allowing you do any necessary clean-up). -If the ``on_data`` callable returns ``False``, the data will not be buffered by +If the ``on_data`` callable returns ``False``, the data will *not* be buffered by ``python-gnupg``. For any other return value (including ``None``), the data *will* be buffered. (This slightly odd arrangement is for backwards compatibility.) @@ -1090,7 +1090,7 @@ Example usages (not tested, error handling omitted): class Processor: def __init__(self, fn): - self.out = open(fn, 'w') + self.out = open(fn, 'w', encoding='utf-8') self.decoder = codecs.getincrementaldecoder('utf-8') self.result = '' diff --git a/docs/requirements.txt b/docs/requirements.txt index aba923b..3fcdbe0 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,2 +1,3 @@ sphinxcontrib-spelling==7.6.2 sphinx<7 +sphinx-rtd-theme>=1.2.2