Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Remove duplicate seek test #593

Merged
merged 3 commits into from Mar 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/wheel/macosx_libfile.py
Expand Up @@ -340,9 +340,7 @@ def read_mach_header(lib_file, seek=None):

:param lib_file: reference to opened library file with pointer
"""
if seek is not None:
lib_file.seek(seek)
base_class, magic_number = get_base_class_and_magic_number(lib_file)
base_class, magic_number = get_base_class_and_magic_number(lib_file, seek)
arch = "32" if magic_number == MH_MAGIC else "64"

class SegmentBase(base_class):
Expand Down