⚝
One Hat Cyber Team
⚝
Your IP:
52.15.225.105
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
debian
/
View File Name :
__init__.py
""" Tools for working with Debian-related file formats """ __version__ = "" try: # pylint: disable=no-member import debian._version # type: ignore __version__ = debian._version.__version__ # type: ignore except ImportError: try: # Try to extract the version from the package changelog and # determine whether it is a post-release or pre-release version. import os.path import debian.changelog changelog_filename = os.path.join( os.path.dirname(__file__), '..', '..', 'debian', 'changelog') with open(changelog_filename, 'rb') as fh: c = debian.changelog.Changelog(fh) version = str(c.get_version()) mark = "~" if c.distributions == 'UNRELEASED' else "+" except: # pylint: disable=bare-except # Fake a version string in desperation version = '0.0.0' mark = '-' import datetime timestamp = datetime.datetime.utcnow().strftime("%Y%m%d") __version__ = "%s%sgit%s" % (version, mark, timestamp)