Skip to content

Commit

Permalink
Remove bool_env
Browse files Browse the repository at this point in the history
Rendered unnecessary after #1079.
  • Loading branch information
kiritofeng authored Nov 13, 2022
1 parent 6056849 commit ae6b204
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions dmoj/utils/os_ext.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import ctypes
import ctypes.util
import os
import signal
from typing import Optional

Expand Down Expand Up @@ -41,8 +40,3 @@ def strsignal(signo: int) -> str:

def strsignal(signo: int) -> str:
return _strsignal(signo) or f'Unknown signal {signo}'


def bool_env(name: str) -> bool:
value = os.environ.get(name, '')
return value.lower() in ('true', 'yes', '1', 'y', 't')

0 comments on commit ae6b204

Please sign in to comment.