diff options
author | Jingxuan He <LostBenjamin@users.noreply.github.com> | 2022-06-15 14:14:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 14:14:29 +0200 |
commit | 4d0b23eccc23718e420dfd29b2023ecf90300036 (patch) | |
tree | 77b320267c00083d0d943fccea7a8327e66959f1 /numpy/distutils | |
parent | d2a9862726d9df9a096863d5e37842d0df885d85 (diff) | |
download | numpy-4d0b23eccc23718e420dfd29b2023ecf90300036.tar.gz |
Fix a potential variable misuse bug
Diffstat (limited to 'numpy/distutils')
-rw-r--r-- | numpy/distutils/misc_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py index 78665d351..b3916a2c8 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -358,7 +358,7 @@ if terminal_has_colors(): fgcode = 30 + _colour_codes.get(fg.lower(), 0) seq.append(str(fgcode)) if bg: - bgcode = 40 + _colour_codes.get(fg.lower(), 7) + bgcode = 40 + _colour_codes.get(bg.lower(), 7) seq.append(str(bgcode)) if seq: return '\x1b[%sm%s\x1b[0m' % (';'.join(seq), s) |