mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-06 04:17:47 +03:00
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:
parent
16895b4a49
commit
ec0bcc11f5
261 changed files with 440 additions and 713 deletions
|
@ -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__ = []
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue