mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-04 19:38:03 +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,5 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2011-2013 Calum Lind <calumlind@gmail.com>
|
||||
# Copyright (C) 2009 Andrew Resch <andrewresch@gmail.com>
|
||||
|
@ -89,7 +88,7 @@ with open(INFILES_LIST, 'w') as f:
|
|||
call(xgettext_cmd + ['--language=Python', '-j'])
|
||||
|
||||
# Replace YEAR and PACKAGE in the copyright message
|
||||
with open(POT_FILEPATH, 'r') as f:
|
||||
with open(POT_FILEPATH) as f:
|
||||
lines = f.readlines()
|
||||
with open(POT_FILEPATH, 'w') as f:
|
||||
for line in lines:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue