From 65e6eff7560be131976fd3a123afd2a9581a7faa Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Wed, 27 Jan 2021 21:17:02 +0000 Subject: [PATCH] comment --- CHANGELOG.md | 1 + rich/text.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3134355..08327232 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Some optimizations for Text +- Further optimized Tracebacks by not tokenizing code more that necessary - Table Column.header_style and Column.footer_style are now added to Table header/footer style ## [9.9.0] - 2021-01-23 diff --git a/rich/text.py b/rich/text.py index 8841be56..f4ccfcea 100644 --- a/rich/text.py +++ b/rich/text.py @@ -687,7 +687,6 @@ class Text(JupyterMixin): def _trim_spans(self) -> None: """Remove or modify any spans that are over the end of the text.""" - # new_length = self._length max_offset = len(self.plain) _Span = Span self._spans[:] = [