Skip to content

Commit 744d659

Browse files
author
Scott Griffiths
committed
Fix to NO_COLOR env var logic.
1 parent b6a644f commit 744d659

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

bitstring/bitstring_options.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ def __init__(self):
1515

1616
self.no_color = False
1717
no_color = os.getenv('NO_COLOR')
18-
try:
19-
self.no_color = False if no_color is None else bool(int(no_color))
20-
except ValueError:
21-
pass
18+
self.no_color = True if no_color else False
2219

2320
@property
2421
def mxfp_overflow(self) -> str:

0 commit comments

Comments
 (0)