remove dep on six

This commit is contained in:
Manuel Barkhau 2020-09-10 19:56:06 +00:00
parent 3cbf0e82b1
commit 32ad101b9f
3 changed files with 2 additions and 4 deletions

View file

@ -11,7 +11,6 @@ import logging
import datetime as dt
import configparser
import six
import toml
import pathlib2 as pl
@ -168,7 +167,7 @@ def _parse_cfg(cfg_buffer: typ.IO[str]) -> RawConfig:
for option, default_val in BOOL_OPTIONS.items():
val: OptionVal = raw_cfg.get(option, default_val)
if isinstance(val, six.text_type):
if isinstance(val, (bytes, str)):
val = val.lower() in ("yes", "true", "1", "on")
raw_cfg[option] = val