From b2bc5a5fb53dcb6f5449b1382b34f028f16dad66 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Tue, 13 Nov 2018 07:22:35 +0100 Subject: [PATCH] Fixed deprecation warning of log.warn --- auditwheel/lddtree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auditwheel/lddtree.py b/auditwheel/lddtree.py index 0b5259f9..5933dbb7 100644 --- a/auditwheel/lddtree.py +++ b/auditwheel/lddtree.py @@ -157,7 +157,7 @@ def parse_ld_so_conf(ldso_conf: str, paths += [normpath(root + line)] except IOError as e: if e.errno != errno.ENOENT: - log.warn(e) + log.warning(e) if _first: # XXX: Load paths from ldso itself. @@ -190,7 +190,7 @@ def load_ld_paths(root: str='/', prefix: str='') -> Dict[str, List[str]]: env_ldpath = os.environ.get('LD_LIBRARY_PATH') if env_ldpath is not None: if root != '/': - log.warn('ignoring LD_LIBRARY_PATH due to ROOT usage') + log.warning('ignoring LD_LIBRARY_PATH due to ROOT usage') else: # XXX: If this contains $ORIGIN, we probably have to parse this # on a per-ELF basis so it can get turned into the right thing.