From b66f1f041c47e18dbef207be3e4df8aa41a6dd13 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Fri, 23 Dec 2022 18:10:28 +0000 Subject: [PATCH] comment --- rich/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rich/console.py b/rich/console.py index 472789b0c..a3aaa83b5 100644 --- a/rich/console.py +++ b/rich/console.py @@ -2028,7 +2028,7 @@ def _check_buffer(self) -> None: # https://github.com/python/cpython/issues/82052 # We need to avoid writing more than 32Kb in a single write, due to the above bug write = self.file.write - # Worse case scenario, every character is a bytes of utf-8 + # Worse case scenario, every character is 4 bytes of utf-8 MAX_WRITE = 32 * 1024 // 4 try: if len(text) <= MAX_WRITE: