Skip to content

Commit

Permalink
Merge pull request #120 from atombrella/warning_deprecation
Browse files Browse the repository at this point in the history
Fixed deprecation warning of log.warn
  • Loading branch information
ehashman authored Nov 18, 2018
2 parents d99cc1d + b2bc5a5 commit b95f9a2
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit b95f9a2

Please # to comment.