aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-02-15 23:23:40 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-02-16 00:26:08 +0530
commitc05b72512299f5aaf33c189a8ff959668f19574f (patch)
tree1e0e474eaaa8e405a5298c0ffa1451d20e08c5d1 /mesonbuild/mesonlib.py
parent11253a1c3aa3bb8208cae0f04792b26db9b99601 (diff)
downloadmeson-c05b72512299f5aaf33c189a8ff959668f19574f.zip
meson-c05b72512299f5aaf33c189a8ff959668f19574f.tar.gz
meson-c05b72512299f5aaf33c189a8ff959668f19574f.tar.bz2
Split console colourization into a separate function
Use it instead of making a direct call to mlog._windows_ansi().
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index 1f3989d..f3c0759 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -65,8 +65,7 @@ def git(cmd: T.List[str], workingdir: str, **kwargs) -> subprocess.CompletedProc
# Sometimes git calls git recursively, such as `git submodule update
# --recursive` which will be without the above workaround, so set the
# console mode again just in case.
- if platform.system().lower() == 'windows':
- mlog._windows_ansi()
+ mlog.setup_console()
return pc