From cf038e49e90bbf6ecba700efa351fd3d39ab634a Mon Sep 17 00:00:00 2001 From: vindennt Date: Thu, 20 Jun 2024 22:53:23 -0700 Subject: [PATCH] fixed incorrect parsing of linebreaks from use of strip() --- python/utils/requirements.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/utils/requirements.py b/python/utils/requirements.py index 687fb6b..8649c50 100644 --- a/python/utils/requirements.py +++ b/python/utils/requirements.py @@ -34,9 +34,8 @@ def update_requirements(): continue # Remove newlines, empty spaces, and tabs - updated_line = updated_line.strip() - if updated_line == "": - # Skip if the line is a empty + if updated_line == "" or updated_line == "\n": + # Skip if the line is empty continue updated_line = patch_git_urls(updated_line)