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