summaryrefslogtreecommitdiff
path: root/scripts/dev/recompile_requirements.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dev/recompile_requirements.py')
-rw-r--r--scripts/dev/recompile_requirements.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/dev/recompile_requirements.py b/scripts/dev/recompile_requirements.py
index f9a94bfe3..562841c84 100644
--- a/scripts/dev/recompile_requirements.py
+++ b/scripts/dev/recompile_requirements.py
@@ -399,7 +399,13 @@ def _get_changes(diff):
for line in diff:
if not line.startswith('-') and not line.startswith('+'):
continue
- if line.startswith('+++ ') or line.startswith('--- '):
+ elif line.startswith('+++ ') or line.startswith('--- '):
+ continue
+ elif not line.strip():
+ # Could be newline changes on Windows
+ continue
+ elif line[1:].startswith('# This file is automatically'):
+ # Could be newline changes on Windows
continue
name, version = parse_versioned_line(line[1:])