mirror of
https://github.com/borgbackup/borg.git
synced 2026-03-26 20:34:45 -04:00
Version: do not access private attributes, fixes #9263
DeprecationWarning: Version._version is private and will be removed soon
This commit is contained in:
parent
4827521f9c
commit
3bddee22d4
1 changed files with 1 additions and 2 deletions
|
|
@ -3,8 +3,7 @@ from packaging.version import parse as parse_version
|
|||
from ._version import version as __version__
|
||||
|
||||
|
||||
_v = parse_version(__version__)
|
||||
__version_tuple__ = _v._version.release # type: ignore
|
||||
__version_tuple__ = parse_version(__version__).release
|
||||
|
||||
# assert that all semver components are integers
|
||||
# this is mainly to show errors when people repackage poorly
|
||||
|
|
|
|||
Loading…
Reference in a new issue