Skip to content

Commit af39e38

Browse files
committed
better naming
1 parent 8165762 commit af39e38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/textual/strip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,8 @@ def render_ansi(cls, style: Style, color_system: ColorSystem) -> str:
672672
sgr = []
673673
if (color := style._color) is not None:
674674
sgr.extend(color.downgrade(color_system).get_ansi_codes())
675-
if (color := style._bgcolor) is not None:
676-
sgr.extend(color.downgrade(color_system).get_ansi_codes(False))
675+
if (bgcolor := style._bgcolor) is not None:
676+
sgr.extend(bgcolor.downgrade(color_system).get_ansi_codes(False))
677677
ansi = style._ansi = ";".join(sgr)
678678
return ansi
679679

0 commit comments

Comments
 (0)