Speedup check_copies script (#7394)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user