Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test_tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion acstore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
to read and write plaso storage files.
"""

__version__ = '20260504'
__version__ = '20260507'
6 changes: 3 additions & 3 deletions acstore/fake_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions acstore/helpers/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion acstore/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions acstore/sqlite_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down Expand Up @@ -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}')
Expand Down
4 changes: 2 additions & 2 deletions config/dpkg/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
acstore (20260504-1) unstable; urgency=low
acstore (20260507-1) unstable; urgency=low

* Auto-generated

-- Log2Timeline maintainers <log2timeline-maintainers@googlegroups.com> Mon, 04 May 2026 19:11:42 +0200
-- Log2Timeline maintainers <log2timeline-maintainers@googlegroups.com> Thu, 07 May 2026 05:48:12 +0200
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
Loading