diff options
| author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-02-15 23:23:40 +0530 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2020-02-16 00:26:08 +0530 |
| commit | c05b72512299f5aaf33c189a8ff959668f19574f (patch) | |
| tree | 1e0e474eaaa8e405a5298c0ffa1451d20e08c5d1 /mesonbuild/mesonlib.py | |
| parent | 11253a1c3aa3bb8208cae0f04792b26db9b99601 (diff) | |
| download | meson-c05b72512299f5aaf33c189a8ff959668f19574f.tar.gz | |
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.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index 1f3989d8b..f3c07591f 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 |
