]> 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 incorrect call (#762)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Fri, 15 Mar 2019 17:39:08 +0000 (10:39 -0700)
committerŁukasz Langa <lukasz@langa.pl>
Fri, 15 Mar 2019 17:39:08 +0000 (18:39 +0100)
black.py
tests/data/composition.py

index c44bc9b46f6167f416f7c313acad509653bab8c7..680b1f44f0c68cebe3382a7cec05cff04558dd66 100644 (file)
--- a/black.py
+++ b/black.py
@@ -2206,7 +2206,7 @@ def split_line(
             # All splits failed, best effort split with no omits.
             # This mostly happens to multiline strings that are by definition
             # reported as not fitting a single line.
-            yield from right_hand_split(line, supports_trailing_commas)
+            yield from right_hand_split(line, line_length, supports_trailing_commas)
 
         if line.inside_brackets:
             split_funcs = [delimiter_split, standalone_comment_split, rhs]
index ac63e46751a466260ce819ec0f1c05817fa88d34..31f5bd5ebd5b0601817eb8c646c0094d8a962b86 100644 (file)
@@ -166,17 +166,14 @@ class C:
             _C.__init__.__code__.co_firstlineno + 1,
         )
 
-        assert (
-            expectedexpectedexpectedexpectedexpectedexpectedexpectedexpectedexpect
-            == {
-                key1: value1,
-                key2: value2,
-                key3: value3,
-                key4: value4,
-                key5: value5,
-                key6: value6,
-                key7: value7,
-                key8: value8,
-                key9: value9,
-            }
-        )
+        assert expectedexpectedexpectedexpectedexpectedexpectedexpectedexpectedexpect == {
+            key1: value1,
+            key2: value2,
+            key3: value3,
+            key4: value4,
+            key5: value5,
+            key6: value6,
+            key7: value7,
+            key8: value8,
+            key9: value9,
+        }