From 204d907df7936203a374b5d5ded252ad9062fccd Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 22 Feb 2016 10:04:17 +0100 Subject: [PATCH] distutils.log has no warning overzealous find/replace for deprecated `logging.warn`. `distutils.log.warn` is not deprecated and their is no `distutils.log.warning`. --- setupbase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setupbase.py b/setupbase.py index 8c8da4758..6e90cec07 100644 --- a/setupbase.py +++ b/setupbase.py @@ -536,11 +536,11 @@ def css_js_prerelease(command, strict=False): # die if strict or any targets didn't build prefix = os.path.commonprefix([repo_root + os.sep] + missing) missing = [ m[len(prefix):] for m in missing ] - log.warning("rebuilding js and css failed. The following required files are missing: %s" % missing) + log.warn("rebuilding js and css failed. The following required files are missing: %s" % missing) raise e else: - log.warning("rebuilding js and css failed (not a problem)") - log.warning(str(e)) + log.warn("rebuilding js and css failed (not a problem)") + log.warn(str(e)) # check again for missing targets, just in case: missing = [ t for t in targets if not os.path.exists(t) ]