Skip to content

Commit

Permalink
Mark copy of filter_system_libs as private.
Browse files Browse the repository at this point in the history
  • Loading branch information
HexDecimal committed Jul 11, 2021
1 parent 19128ce commit 5472b0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions delocate/libsana.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DependencyNotFound(Exception):
"""


def filter_system_libs(libname):
def _filter_system_libs(libname):
# type: (Text) -> bool
return not (libname.startswith('/usr/lib') or libname.startswith('/System'))

Expand Down Expand Up @@ -90,7 +90,7 @@ def get_dependencies(
logger.debug("Ignoring dependencies of %s" % lib_fname)
return
if not os.path.isfile(lib_fname):
if not filter_system_libs(lib_fname):
if not _filter_system_libs(lib_fname):
logger.debug(
"Ignoring missing library %s because it is a system library.",
lib_fname
Expand All @@ -110,7 +110,7 @@ def get_dependencies(
else:
dependency_path = search_environment_for_lib(install_name)
if not os.path.isfile(dependency_path):
if not filter_system_libs(dependency_path):
if not _filter_system_libs(dependency_path):
logger.debug(
"Skipped missing dependency %s"
" because it is a system library.",
Expand Down

0 comments on commit 5472b0a

Please sign in to comment.