From bbb07830ff9aed55e12607f1f4e7ab6e2174ca0e Mon Sep 17 00:00:00 2001 From: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Date: Fri, 25 Sep 2020 11:47:22 -0400 Subject: [PATCH] Speedup check_copies script (#7394) --- utils/check_copies.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/utils/check_copies.py b/utils/check_copies.py index 49eea91334..fedd4357fe 100644 --- a/utils/check_copies.py +++ b/utils/check_copies.py @@ -138,10 +138,6 @@ def is_copy_consistent(filename, overwrite=False): obj1, obj2 = search_patterns.groups() 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. if observed_code != theoretical_code: found_diff = True