mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
fix depricated usage log.warn -> log.warning
This commit is contained in:
parent
b7f2eeb091
commit
bc87ab1b88
1 changed files with 4 additions and 4 deletions
|
|
@ -195,9 +195,9 @@ def _assert_not_dirty(vcs, filepaths: typ.Set[str], allow_dirty: bool):
|
|||
dirty_files = vcs.status()
|
||||
|
||||
if dirty_files:
|
||||
log.warn(f"{vcs.name} working directory is not clean:")
|
||||
log.warning(f"{vcs.name} working directory is not clean:")
|
||||
for dirty_file in dirty_files:
|
||||
log.warn(" " + dirty_file)
|
||||
log.warning(" " + dirty_file)
|
||||
|
||||
if not allow_dirty and dirty_files:
|
||||
sys.exit(1)
|
||||
|
|
@ -206,7 +206,7 @@ def _assert_not_dirty(vcs, filepaths: typ.Set[str], allow_dirty: bool):
|
|||
if dirty_pattern_files:
|
||||
log.error("Not commiting when pattern files are dirty:")
|
||||
for dirty_file in dirty_pattern_files:
|
||||
log.warn(" " + dirty_file)
|
||||
log.warning(" " + dirty_file)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
|
|
@ -216,7 +216,7 @@ def _bump(cfg: config.Config, new_version: str, allow_dirty: bool = False) -> No
|
|||
try:
|
||||
_vcs = vcs.get_vcs()
|
||||
except OSError:
|
||||
log.warn("Version Control System not found, aborting commit.")
|
||||
log.warning("Version Control System not found, aborting commit.")
|
||||
_vcs = None
|
||||
|
||||
filepaths = set(cfg.file_patterns.keys())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue