From 1677cdbcb9ae34bc02a0278d79aadc5af9c1341b Mon Sep 17 00:00:00 2001 From: catalinaperalta Date: Fri, 19 Jul 2024 13:44:06 -0700 Subject: [PATCH] update variable name (#36548) Co-authored-by: Catalina Peralta --- tools/azure-sdk-tools/pypi_tools/pypi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/azure-sdk-tools/pypi_tools/pypi.py b/tools/azure-sdk-tools/pypi_tools/pypi.py index 64747ac947a..25e421b9bc0 100644 --- a/tools/azure-sdk-tools/pypi_tools/pypi.py +++ b/tools/azure-sdk-tools/pypi_tools/pypi.py @@ -68,5 +68,5 @@ class PyPIClient: If there are different, it means the latest is not a stable """ versions = self.get_ordered_versions(package_name) - pre_releases = [version for version in versions if not version.is_prerelease] - return (versions[-1], pre_releases[-1]) + stable_releases = [version for version in versions if not version.is_prerelease] + return (versions[-1], stable_releases[-1])