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

@ -76,7 +76,9 @@ def extract(options):
if tmp_apk and os.path.exists(tmp_apk):
os.remove(tmp_apk)
else:
logging.warn(_('refuse downloading via insecure HTTP connection (use HTTPS or specify --no-https-check): {apkfilename}').format(apkfilename=apk))
logging.warning(_('refuse downloading via insecure HTTP connection '
'(use HTTPS or specify --no-https-check): {apkfilename}')
.format(apkfilename=apk))
except FDroidException as e:
logging.warning(_("Failed fetching signatures for '{apkfilename}': {error}")
.format(apkfilename=apk, error=e))