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

@ -77,7 +77,7 @@ The fastest way to setup a project is to use `pycalver init`.
```shell
$ pip install pycalver
...
Installing collected packages: click pathlib2 typing toml six pycalver
Installing collected packages: click pathlib2 typing toml pycalver
Successfully installed pycalver-202007.36
$ pycalver --version

View file

@ -11,5 +11,4 @@ pathlib2
typing; python_version < "3.5"
click
toml
six
lexid

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