Fix for enum changes in 3.10 (#1999)

This commit is contained in:
James 2021-02-22 15:42:05 +00:00 committed by GitHub
parent cd4295dd98
commit 24e8dad575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -883,7 +883,7 @@ def format_file_in_place(
dst_name = f"{src}\t{now} +0000" dst_name = f"{src}\t{now} +0000"
diff_contents = diff(src_contents, dst_contents, src_name, dst_name) diff_contents = diff(src_contents, dst_contents, src_name, dst_name)
if write_back == write_back.COLOR_DIFF: if write_back == WriteBack.COLOR_DIFF:
diff_contents = color_diff(diff_contents) diff_contents = color_diff(diff_contents)
with lock or nullcontext(): with lock or nullcontext():