From 6ac76cfdd46105044708ad409bbe9346343f8798 Mon Sep 17 00:00:00 2001 From: David Swarbrick Date: Thu, 18 Nov 2021 20:35:23 +0000 Subject: [PATCH] Formatting with Black --- beets/ui/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py index e660cff8c1..c0f1d1a60d 100644 --- a/beets/ui/__init__.py +++ b/beets/ui/__init__.py @@ -855,7 +855,9 @@ def split_into_lines(string, width_tuple): return result -def print_column_layout(indent_str, left, right, separator=u" -> ", max_width=term_width()): +def print_column_layout( + indent_str, left, right, separator=u" -> ", max_width=term_width() +): """Print left & right data, with separator inbetween 'left' and 'right' have a structure of: {'prefix':u'','contents':u'','suffix':u'','width':0} @@ -1009,7 +1011,11 @@ def print_newline_layout( # Newline separation, with wrapping empty_space = max_width - len(indent_str) # On lower lines we will double the indent for clarity - left_width = (empty_space, empty_space - len(indent_str), empty_space - len(indent_str)) + left_width = ( + empty_space, + empty_space - len(indent_str), + empty_space - len(indent_str), + ) left_str = left["prefix"] + left["contents"] + left["suffix"] left_split = split_into_lines(left_str, left_width) # Repeat calculations for rhs, including separator on first line