Skip to content

Commit

Permalink
Merge pull request #121 from atombrella/unused_variables
Browse files Browse the repository at this point in the history
Removed some unused variables
  • Loading branch information
ehashman authored Nov 13, 2018
2 parents 499aae4 + 56d07d4 commit fca4db3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions auditwheel/lddtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,9 @@ def load_ld_paths(root: str='/', prefix: str='') -> Dict[str, List[str]]:
-------
dict containing library paths to search
"""
ldpaths = {'conf': [], 'env': [], 'interp': [], }
ldpaths = {'conf': [], 'env': [], 'interp': []}

# Load up $LD_LIBRARY_PATH.
ldpaths['env'] = []
env_ldpath = os.environ.get('LD_LIBRARY_PATH')
if env_ldpath is not None:
if root != '/':
Expand Down
3 changes: 1 addition & 2 deletions auditwheel/wheel_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def analyze_wheel_abi(wheel_fn: str):
elftree_by_fn, external_refs_by_fn, versioned_symbols, has_ucs2, uses_PyFPE_jbuf= \
get_wheel_elfdata(wheel_fn)

for fn, elftree in elftree_by_fn.items():
for fn in elftree_by_fn.keys():
update(external_refs, external_refs_by_fn[fn])

log.info(json.dumps(external_refs, indent=4))
Expand All @@ -117,7 +117,6 @@ def analyze_wheel_abi(wheel_fn: str):
else:
ucs_policy = POLICY_PRIORITY_HIGHEST


if uses_PyFPE_jbuf:
pyfpe_policy = POLICY_PRIORITY_LOWEST
else:
Expand Down
2 changes: 1 addition & 1 deletion auditwheel/wheeltools.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def add_platforms(wheel_ctx, platforms, remove_platforms=()):
else:
logger.info('No filename tags change needed.')

wheel_base, ext = splitext(wheel_fname)
_, ext = splitext(wheel_fname)
fparts['plat'] = '.'.join(fname_tags)
fparts['ext'] = ext
out_wheel_fname = "{namever}-{pyver}-{abi}-{plat}{ext}".format(**fparts)
Expand Down

0 comments on commit fca4db3

Please sign in to comment.