mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 06:20:08 +01:00
remove dep on six
This commit is contained in:
parent
3cbf0e82b1
commit
32ad101b9f
3 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -11,5 +11,4 @@ pathlib2
|
|||
typing; python_version < "3.5"
|
||||
click
|
||||
toml
|
||||
six
|
||||
lexid
|
||||
|
|
|
|||
|
|
@ -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