Skip to content

Commit b42515d

Browse files
pcaspersjenkins
authored andcommitted
QPR-12014 igenore white space differences
1 parent 00b1a2a commit b42515d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Tools/PythonTools/compare_files.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,9 @@ def compare_files_direct(name, file_1, file_2):
544544
diff = difflib.unified_diff(s1, s2, fromfile=file_1, tofile=file_2)
545545
match = True
546546
for line in diff:
547-
match = False
548-
logger.warning(line.rstrip('\n'))
547+
if line.strip():
548+
match = False
549+
logger.warning(line.rstrip('\n'))
549550

550551
return match
551552

0 commit comments

Comments
 (0)