Skip to content

Commit

Permalink
rename func
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrd committed Aug 13, 2023
1 parent 8e13b56 commit d327b69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dictdatabase/io_safe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)



Expand Down
2 changes: 1 addition & 1 deletion dictdatabase/io_unsafe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d327b69

Please sign in to comment.