From: Andre McCurdy Date: Tue, 25 Jul 2017 21:30:01 +0000 (-0700) Subject: bitbake: fetch2/__init__.py: replace stray logger.warn() with logger.warning() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=961d2366de97da7f3ced1238d6268237fa0906e2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: fetch2/__init__.py: replace stray logger.warn() with logger.warning() Update stray usage of deprecated logger.warn(), which was introduced to fetch2/__init__.py after all other instances had been replaced by logger.warning(): http://git.openembedded.org/bitbake/commit/?id=5a53e7d7b017769a6eb0f0a6335735a1fe51a5ec http://git.openembedded.org/bitbake/commit/?id=676a5f592e8507e81b8f748d58acfea7572f8796 (Bitbake rev: 1b14f115a9e929e29e91e8ac70826a3fe7259961) Signed-off-by: Andre McCurdy Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 74ba37f4588..a78279cb933 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -1033,7 +1033,7 @@ def try_mirror_url(fetch, origud, ud, ld, check = False): except IOError as e: if e.errno in [os.errno.ESTALE]: - logger.warn("Stale Error Observed %s." % ud.url) + logger.warning("Stale Error Observed %s." % ud.url) return False raise