diff options
author | DjLegolas <djlegolas@protonmail.com> | 2021-12-28 22:20:57 +0200 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2021-12-29 21:51:07 +0000 |
commit | ec0bcc11f510cd113bbdb6cd551b27c697f03f53 (patch) | |
tree | c60c19a61a14fa157227ad7531406f250493b78e /docs | |
parent | 16895b4a492aedca8bcc2929a905207341c36b35 (diff) | |
download | deluge-ec0bcc11f510cd113bbdb6cd551b27c697f03f53.tar.gz deluge-ec0bcc11f510cd113bbdb6cd551b27c697f03f53.tar.bz2 deluge-ec0bcc11f510cd113bbdb6cd551b27c697f03f53.zip |
Upgrade codebase with pyupgrade (>=py3.6)
Added pyupgrade utility with manual stage to pre-commit and run on all
files.
Ref: https://github.com/asottile/pyupgrade
Closes: deluge-torrent/deluge#326
Diffstat (limited to 'docs')
-rw-r--r-- | docs/source/conf.py | 3 | ||||
-rw-r--r-- | docs/source/devguide/how-to/update-1.3-plugin.md | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py index c04a20452..f04653e03 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Deluge documentation build configuration file # @@ -219,7 +218,7 @@ latex_documents = [ # Autodoc section # --------------- -class Mock(object): +class Mock: __all__ = [] diff --git a/docs/source/devguide/how-to/update-1.3-plugin.md b/docs/source/devguide/how-to/update-1.3-plugin.md index 9c086902b..9ce6ae14c 100644 --- a/docs/source/devguide/how-to/update-1.3-plugin.md +++ b/docs/source/devguide/how-to/update-1.3-plugin.md @@ -11,7 +11,7 @@ compatible with 2.0 and this guide aims to helps with that process. ### Python version matching -Ensure your code is Python >=3.5 compatible. +Ensure your code is Python >=3.6 compatible. In `1.3-stable` the plugins that were built with a specific version of Python would only be loaded if the system Python also matched. |