From b06c19ed929ceb9fae13167805fb04f558c1f81e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Oct 2023 18:21:20 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/asottile/pyupgrade: v3.14.0 → v3.15.0](https://github.com/asottile/pyupgrade/compare/v3.14.0...v3.15.0) - [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.6.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.1...v1.6.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 849db320..055d6061 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ exclude: ^src/auditwheel/_vendor/ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-builtin-literals - id: check-added-large-files @@ -23,7 +23,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/asottile/pyupgrade - rev: v3.14.0 + rev: v3.15.0 hooks: - id: pyupgrade args: ["--py38-plus"] @@ -46,7 +46,7 @@ repos: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.6.0 hooks: - id: mypy exclude: ^tests/integration/.*/.*$ From c10a19df76700807c5ef30a3aa40b42dafd5f031 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Oct 2023 18:21:58 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/auditwheel/wheel_abi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auditwheel/wheel_abi.py b/src/auditwheel/wheel_abi.py index 1e963f7b..ca72d04f 100644 --- a/src/auditwheel/wheel_abi.py +++ b/src/auditwheel/wheel_abi.py @@ -63,7 +63,7 @@ def get_wheel_elfdata(wheel_fn: str): full_elftree = {} nonpy_elftree = {} full_external_refs = {} - versioned_symbols: dict[str, set[str]] = defaultdict(lambda: set()) + versioned_symbols: dict[str, set[str]] = defaultdict(set) uses_ucs2_symbols = False uses_PyFPE_jbuf = False @@ -196,7 +196,7 @@ def get_versioned_symbols(libs): for path, elf in elf_file_filter(libs.keys()): # {depname: set(symbol_version)}, e.g. # {'libc.so.6', set(['GLIBC_2.5','GLIBC_2.12'])} - elf_versioned_symbols = defaultdict(lambda: set()) + elf_versioned_symbols = defaultdict(set) for key, value in elf_find_versioned_symbols(elf): log.debug("path %s, key %s, value %s", path, key, value) elf_versioned_symbols[key].add(value)