]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix for enum changes in 3.10 (#1999)
authorJames <50501825+Gobot1234@users.noreply.github.com>
Mon, 22 Feb 2021 15:42:05 +0000 (15:42 +0000)
committerGitHub <noreply@github.com>
Mon, 22 Feb 2021 15:42:05 +0000 (07:42 -0800)
src/black/__init__.py

index c1907d9b1f10dd47a19d30df5686d9885fda4fdb..e09f08df7dff335f61bc0489d4d2f5724e853754 100644 (file)
@@ -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():