Skip to content

Commit e0bcc4a

Browse files
committed
fix incompatibility with python < 3.9
1 parent 65e984f commit e0bcc4a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Install the package from source with pip:
6262
```bash
6363
cd mkdocs-encryptcontent-plugin/
6464
python setup.py sdist bdist_wheel
65-
pip install dist/mkdocs_encryptcontent_plugin-2.4.0-py3-none-any.whl
65+
pip install dist/mkdocs_encryptcontent_plugin-2.4.1-py3-none-any.whl
6666
```
6767

6868
Enable the plugin in your `mkdocs.yml`:

encryptcontent/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def on_config(self, config, **kwargs):
240240
# Enable experimental code .. :popcorn:
241241
elif self.config['search_index'] == 'dynamically':
242242
logger.info("EXPERIMENTAL search index encryption enabled.")
243-
self.config['encrypted_something'] = self.config['inject'] | self.config['encrypted_something'] #add inject to encrypted_something
243+
self.config['encrypted_something'] = {**self.config['inject'], **self.config['encrypted_something']} #add inject to encrypted_something
244244
# Get path to site in case of subdir in site_url
245245
self.config['site_path'] = urlsplit(config.data["site_url"] or '/').path[1::]
246246

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def read(fname):
1111

1212
setup(
1313
name='mkdocs-encryptcontent-plugin',
14-
version='2.4.0',
14+
version='2.4.1',
1515
author='unverbuggt',
1616
author_email='[email protected]',
1717
description='A MkDocs plugin that encrypt/decrypt markdown content with AES',

0 commit comments

Comments
 (0)