Unverified Commit 24e8dad5 authored by James's avatar James Committed by GitHub
Browse files

Fix for enum changes in 3.10 (#1999)

parent cd4295dd
Loading
Loading
Loading
Loading
+1 −1
Changes for src/black/__init__.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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():