Unverified Commit bbb07830 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Speedup check_copies script (#7394)

parent 8859c4f8
...@@ -138,10 +138,6 @@ def is_copy_consistent(filename, overwrite=False): ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment