mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
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:
parent
67332d83a5
commit
6030445be0
10 changed files with 34 additions and 31 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue