Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed deprecation warning of log.warn #120

Merged
merged 1 commit into from
Nov 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions auditwheel/lddtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down