diff --git a/.github/workflows/test_docs.yml b/.github/workflows/test_docs.yml index 9036b5a..46caf6f 100644 --- a/.github/workflows/test_docs.yml +++ b/.github/workflows/test_docs.yml @@ -13,9 +13,9 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.12'] + python-version: ['3.14'] container: - image: ubuntu:24.04 + image: ubuntu:26.04 steps: - uses: actions/checkout@v6 - name: Set up container diff --git a/.github/workflows/test_tox.yml b/.github/workflows/test_tox.yml index 4ed26bb..9232b22 100644 --- a/.github/workflows/test_tox.yml +++ b/.github/workflows/test_tox.yml @@ -25,7 +25,7 @@ jobs: - python-version: '3.14' toxenv: 'py314' container: - image: ubuntu:24.04 + image: ubuntu:26.04 steps: - uses: actions/checkout@v6 - name: Set up container @@ -54,9 +54,9 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.12'] + python-version: ['3.14'] container: - image: ubuntu:24.04 + image: ubuntu:26.04 steps: - uses: actions/checkout@v6 - name: Set up container @@ -89,9 +89,9 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.12'] + python-version: ['3.14'] container: - image: ubuntu:24.04 + image: ubuntu:26.04 steps: - uses: actions/checkout@v6 - name: Set up container diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 24853d8..9cf7768 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -4,9 +4,9 @@ version: 2 build: - os: ubuntu-24.04 + os: ubuntu-26.04 tools: - python: "3.12" + python: "3.14" sphinx: configuration: docs/conf.py diff --git a/acstore/__init__.py b/acstore/__init__.py index 8b4f967..d0cc081 100644 --- a/acstore/__init__.py +++ b/acstore/__init__.py @@ -4,4 +4,4 @@ to read and write plaso storage files. """ -__version__ = '20260504' +__version__ = '20260507' diff --git a/acstore/fake_store.py b/acstore/fake_store.py index 1addc9a..e8b267b 100644 --- a/acstore/fake_store.py +++ b/acstore/fake_store.py @@ -49,7 +49,7 @@ def _WriteExistingAttributeContainer(self, container): identifier = container.GetIdentifier() lookup_key = identifier.CopyToString() - containers = self._attribute_containers.get(container.CONTAINER_TYPE, None) + containers = self._attribute_containers.get(container.CONTAINER_TYPE) if containers is None or lookup_key not in containers: raise OSError( f'Missing attribute container: {container.CONTAINER_TYPE:s} with ' @@ -63,7 +63,7 @@ def _WriteNewAttributeContainer(self, container): Args: container (AttributeContainer): attribute container. """ - containers = self._attribute_containers.get(container.CONTAINER_TYPE, None) + containers = self._attribute_containers.get(container.CONTAINER_TYPE) if containers is None: containers = collections.OrderedDict() self._attribute_containers[container.CONTAINER_TYPE] = containers @@ -112,7 +112,7 @@ def GetAttributeContainerByIdentifier(self, container_type, identifier): containers = self._attribute_containers.get(container_type, {}) lookup_key = identifier.CopyToString() - return containers.get(lookup_key, None) + return containers.get(lookup_key) def GetAttributeContainerByIndex(self, container_type, index): """Retrieves a specific attribute container. diff --git a/acstore/helpers/schema.py b/acstore/helpers/schema.py index 7e58228..6d1b3b1 100644 --- a/acstore/helpers/schema.py +++ b/acstore/helpers/schema.py @@ -38,8 +38,8 @@ def GetAttributeSerializer(cls, data_type, serialization_method): Returns: AttributeSerializer: attribute serializer or None if not available. """ - serializers = cls._data_types.get(data_type, None) or {} - return serializers.get(serialization_method, None) + serializers = cls._data_types.get(data_type) or {} + return serializers.get(serialization_method) @classmethod def HasDataType(cls, data_type): diff --git a/acstore/interface.py b/acstore/interface.py index 961a7a5..c7ff156 100644 --- a/acstore/interface.py +++ b/acstore/interface.py @@ -263,7 +263,7 @@ def _GetCachedAttributeContainer(self, container_type, index): AttributeContainer: attribute container or None if not available. """ lookup_key = f'{container_type:s}.{index:d}' - attribute_container = self._attribute_container_cache.get(lookup_key, None) + attribute_container = self._attribute_container_cache.get(lookup_key) if attribute_container: self._attribute_container_cache.move_to_end(lookup_key, last=False) return attribute_container diff --git a/acstore/sqlite_store.py b/acstore/sqlite_store.py index bfd53d5..ef987f5 100644 --- a/acstore/sqlite_store.py +++ b/acstore/sqlite_store.py @@ -267,7 +267,7 @@ def _CheckStorageMetadata(self, metadata_values, check_readable_only=False): Raises: OSError: if the storage metadata is not supported. """ - format_version = metadata_values.get('format_version', None) + format_version = metadata_values.get('format_version') if not format_version: raise OSError('Missing format version.') @@ -296,7 +296,7 @@ def _CheckStorageMetadata(self, metadata_values, check_readable_only=False): f'Format version: {format_version:d} is too new and not yet ' f'supported, minimum supported version: {self._FORMAT_VERSION:d}') - serialization_format = metadata_values.get('serialization_format', None) + serialization_format = metadata_values.get('serialization_format') if serialization_format != 'json': raise OSError( f'Unsupported serialization format: {serialization_format!s}') diff --git a/config/dpkg/changelog b/config/dpkg/changelog index 143785f..50e7000 100644 --- a/config/dpkg/changelog +++ b/config/dpkg/changelog @@ -1,5 +1,5 @@ -acstore (20260504-1) unstable; urgency=low +acstore (20260507-1) unstable; urgency=low * Auto-generated - -- Log2Timeline maintainers Mon, 04 May 2026 19:11:42 +0200 + -- Log2Timeline maintainers Thu, 07 May 2026 05:48:12 +0200 diff --git a/pyproject.toml b/pyproject.toml index a2b631e..e739f52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "acstore" -version = "20260504" +version = "20260507" description = "Attribute Container Storage (ACStore)" maintainers = [ { name = "Log2Timeline maintainers", email = "log2timeline-maintainers@googlegroups.com" },