]> 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:

Include mode information for unstable formattings
authorŁukasz Langa <lukasz@langa.pl>
Wed, 26 Aug 2020 10:57:05 +0000 (12:57 +0200)
committerŁukasz Langa <lukasz@langa.pl>
Wed, 26 Aug 2020 14:55:05 +0000 (16:55 +0200)
src/black/__init__.py

index 4d4f4b73b916772d490dd16eaa3310157805d78e..200e31fd45873846fe60f45e1dba1f87bc5db8e2 100644 (file)
@@ -6163,6 +6163,7 @@ def assert_stable(src: str, dst: str, mode: Mode) -> None:
     newdst = format_str(dst, mode=mode)
     if dst != newdst:
         log = dump_to_file(
+            str(mode),
             diff(src, dst, "source", "first pass"),
             diff(dst, newdst, "first pass", "second pass"),
         )