From 0050e81e8b4e0801bbd3627433cec5af85ecb44a Mon Sep 17 00:00:00 2001 From: Allie Crevier Date: Mon, 10 May 2021 17:27:49 -0700 Subject: [PATCH] skip code comments when checking dependency hashes --- scripts/verify-hashes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/verify-hashes b/scripts/verify-hashes index b375027b..97f8ff99 100755 --- a/scripts/verify-hashes +++ b/scripts/verify-hashes @@ -38,7 +38,7 @@ with open(requirements_file) as fobj: # to be packaged, has a matching source tarball on FPF's PyPI. # Remove lines with comments. -uncommented_lines = [line for line in lines if not line.startswith('#')] +uncommented_lines = [line for line in lines if not line.lstrip().startswith('#')] # The hashes for a given requirement will be distributed # across multiple lines, e.g.