logging.warn() was deprecated in Python 3.3, use logging.warning()

sed -i 's,logging\.warn(,logging.warning(,g' fdroid */*.*

https://docs.python.org/3.3/library/logging.html#logging.Logger.warning
This commit is contained in:
Hans-Christoph Steiner 2020-05-25 17:36:58 +02:00
parent 67332d83a5
commit 6030445be0
10 changed files with 34 additions and 31 deletions

View file

@ -109,8 +109,8 @@ def main():
continue
if fail == "INSTALL_FAILED_ALREADY_EXISTS":
logging.warn(_("'{apkfilename}' is already installed on {dev}.")
.format(apkfilename=apk, dev=dev))
logging.warning(_('"{apkfilename}" is already installed on {dev}.')
.format(apkfilename=apk, dev=dev))
else:
raise FDroidException(_("Failed to install '{apkfilename}' on {dev}: {error}")
.format(apkfilename=apk, dev=dev, error=fail))