From: James <50501825+Gobot1234@users.noreply.github.com> Date: Mon, 22 Feb 2021 15:42:05 +0000 (+0000) Subject: Fix for enum changes in 3.10 (#1999) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/24e8dad575f2ae373e64b583f6ad103cf9193781 Fix for enum changes in 3.10 (#1999) --- diff --git a/src/black/__init__.py b/src/black/__init__.py index c1907d9..e09f08d 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -883,7 +883,7 @@ def format_file_in_place( dst_name = f"{src}\t{now} +0000" 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) with lock or nullcontext():