mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 22:40:09 +01:00
remove dep on six
This commit is contained in:
parent
3cbf0e82b1
commit
32ad101b9f
3 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue