From 853c9c427dc39bd9c6d99fac352bbd943551bf6c Mon Sep 17 00:00:00 2001 From: Mohammad Rimawi <59421484+MohammadRimawi@users.noreply.github.com> Date: Sat, 10 Feb 2024 15:05:18 +0300 Subject: [PATCH] Fix issue #29 --- beeprint/helpers/string.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beeprint/helpers/string.py b/beeprint/helpers/string.py index b8765a6..43afd54 100644 --- a/beeprint/helpers/string.py +++ b/beeprint/helpers/string.py @@ -16,7 +16,7 @@ def calc_width(s): if hasattr(urwid, 'util'): return urwid.util.calc_width(s, 0, len(s)) - return urwid.str_util.calc_width(s, 0, len(s)) + return urwid.old_str_util.calc_width(s, 0, len(s)) def cut_string(s, length):