From e3d13c49027647bcbbba8bdb2b27d18f69a5ab99 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Sun, 22 Jan 2023 22:04:59 -0500 Subject: [PATCH] Do not use removed iteritems from conda_build --- rpm.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rpm.py b/rpm.py index 31902e60..55e67003 100644 --- a/rpm.py +++ b/rpm.py @@ -53,7 +53,6 @@ import subprocess import click -from conda_build.conda_interface import iteritems from conda_build.source import download_to_cache from conda_build.license_family import guess_license_family from conda_build.config import Config @@ -340,7 +339,7 @@ def find_repo_entry_and_arch(repo_primary, architectures, depend): found_package_name = dep_name except Exception: # Look through the provides of all packages. - for name, package in iteritems(repo_primary): + for name, package in repo_primary.items(): for arch in architectures: if arch in package: if "provides" in package[arch]: @@ -904,7 +903,7 @@ def write_conda_recipe( } ) cdt = dict() - for k, v in iteritems(cdt_info[cdt_name]): + for k, v in cdt_info[cdt_name].items(): if isinstance(v, string_types): cdt[k] = v.format(**architecture_bits) else: