From d8ac65641ddfa87c3c6b1f729b3e89bb002fa600 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Sat, 3 Aug 2024 22:19:28 +0100 Subject: [PATCH] ncols: support FreeBSD - fixes https://github.com/casperdcl/git-fame/issues/98 --- tqdm/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tqdm/utils.py b/tqdm/utils.py index f7060be5..af3ec7de 100644 --- a/tqdm/utils.py +++ b/tqdm/utils.py @@ -14,7 +14,7 @@ from weakref import proxy _range, _unich, _unicode, _basestring = range, chr, str, str CUR_OS = sys.platform IS_WIN = any(CUR_OS.startswith(i) for i in ['win32', 'cygwin']) -IS_NIX = any(CUR_OS.startswith(i) for i in ['aix', 'linux', 'darwin']) +IS_NIX = any(CUR_OS.startswith(i) for i in ['aix', 'linux', 'darwin', 'freebsd']) RE_ANSI = re.compile(r"\x1b\[[;\d]*[A-Za-z]") try: