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
This commit is contained in:
DjLegolas 2021-12-28 22:20:57 +02:00 committed by Calum Lind
parent 16895b4a49
commit ec0bcc11f5
No known key found for this signature in database
GPG key ID: 90597A687B836BA3
261 changed files with 440 additions and 713 deletions

View file

@ -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__ = []

View file

@ -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.