/usr/lib/python3/dist-packages/dbfread/version.py is in python3-dbfread 2.0.7-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | from collections import namedtuple
VersionInfo = namedtuple('VersionInfo',
['major', 'minor', 'micro', 'releaselevel', 'serial'])
def _make_version_info(version):
if '-' in version:
version, releaselevel = version.split('-')
else:
releaselevel = ''
major, minor, micro = map(int, version.split('.'))
return VersionInfo(major, minor, micro, releaselevel, 0)
version = '2.0.7'
version_info = _make_version_info(version)
|