Speedup check_copies script (#7394)

This commit is contained in:
Sylvain Gugger
2020-09-25 11:47:22 -04:00
committed by GitHub
parent 8859c4f841
commit bbb07830ff

View File

@@ -138,10 +138,6 @@ def is_copy_consistent(filename, overwrite=False):
obj1, obj2 = search_patterns.groups() obj1, obj2 = search_patterns.groups()
theoretical_code = re.sub(obj1, obj2, theoretical_code) theoretical_code = re.sub(obj1, obj2, theoretical_code)
# Blackify each version before comparing them.
observed_code = blackify(observed_code)
theoretical_code = blackify(theoretical_code)
# Test for a diff and act accordingly. # Test for a diff and act accordingly.
if observed_code != theoretical_code: if observed_code != theoretical_code:
found_diff = True found_diff = True