Merge pull request #19266 from branchvincent/python-resources

utils/pypi: remove extra newline when updating resources
This commit is contained in:
Branch Vincent 2025-02-08 17:56:06 +00:00 committed by GitHub
commit ace770d29c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -401,7 +401,8 @@ module PyPI
end
end
resource_section = "#{package_errors}\n#{new_resource_blocks}"
package_errors += "\n" if package_errors.present?
resource_section = "#{package_errors}#{new_resource_blocks}"
odie "Excluded superfluous packages: #{exclude_packages.join(", ")}" if exclude_packages.any?