X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/09f5ee3a19f4274bb848324867bd8e68724cf851..25abcea6c5b7edff49841f46f4de1ccd14c05f4b:/black.py diff --git a/black.py b/black.py index 21e3743..5458198 100644 --- a/black.py +++ b/black.py @@ -43,8 +43,9 @@ from blib2to3 import pygram, pytree from blib2to3.pgen2 import driver, token from blib2to3.pgen2.parse import ParseError -__version__ = "18.4a2" +__version__ = "18.4a3" DEFAULT_LINE_LENGTH = 88 + # types syms = pygram.python_symbols FileContent = str @@ -1983,13 +1984,14 @@ def standalone_comment_split(line: Line, py36: bool = False) -> Iterator[Line]: def explode_split( line: Line, py36: bool = False, omit: Collection[LeafID] = () ) -> Iterator[Line]: - """Split by RHS and immediately split contents by a delimiter.""" + """Split by rightmost bracket and immediately split contents by a delimiter.""" new_lines = list(right_hand_split(line, py36, omit)) if len(new_lines) != 3: yield from new_lines return yield new_lines[0] + try: yield from delimiter_split(new_lines[1], py36) except CannotSplit: