提交 46582e5a 编写于 作者: V Ville Skyttä

Use logger.warning instead of deprecated logger.warn

上级 10a8fb4c
......@@ -803,8 +803,8 @@ class WheelBuilder(object):
try:
ensure_dir(output_dir)
except OSError as e:
logger.warn("Building wheel for %s failed: %s",
req.name, e)
logger.warning("Building wheel for %s failed: %s",
req.name, e)
build_failure.append(req)
continue
else:
......
......@@ -77,7 +77,7 @@ def test_check_compatibility():
wheel.check_compatibility(higher_v, name)
assert 'is not compatible' in str(e)
# Should only log.warn - minor version is greator
# Should only log.warning - minor version is greater
higher_v = (vc[0], vc[1] + 1)
wheel.check_compatibility(higher_v, name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册