From d327b695c3bd328ff4916b6a080ee825b3b0ad59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Kro=CC=88ker?= Date: Sun, 13 Aug 2023 23:13:47 +0200 Subject: [PATCH] rename func --- dictdatabase/io_safe.py | 2 +- dictdatabase/io_unsafe.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dictdatabase/io_safe.py b/dictdatabase/io_safe.py index df16c48..dae9699 100644 --- a/dictdatabase/io_safe.py +++ b/dictdatabase/io_safe.py @@ -36,7 +36,7 @@ def partial_read(file_name: str, key: str) -> dict: return None with locking.ReadLock(file_name): - return io_unsafe.partial_read_only(file_name, key) + return io_unsafe.partial_read(file_name, key) diff --git a/dictdatabase/io_unsafe.py b/dictdatabase/io_unsafe.py index ddedab2..fc54f3d 100644 --- a/dictdatabase/io_unsafe.py +++ b/dictdatabase/io_unsafe.py @@ -65,7 +65,7 @@ def try_read_bytes_using_indexer(indexer: indexing.Indexer, db_name: str, key: s return partial_bytes -def partial_read_only(db_name: str, key: str) -> dict | None: +def partial_read(db_name: str, key: str) -> dict | None: """ Partially read a key from a db. The key MUST be unique in the entire db, otherwise the behavior is undefined.