diff --git a/auditwheel/lddtree.py b/auditwheel/lddtree.py index ca1456b6..185b8022 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.