Skip to content

Commit e2c7f14

Browse files
author
Fabien Coelho
committed
remove useless imports
1 parent 2dd384a commit e2c7f14

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CacheToolsUtils.py

-4
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,6 @@ def __init__(self, cache):
650650
# short (250 bytes) ASCII without control chars nor spaces
651651
# we do not use hashing which might be costly or induce collisions
652652
def _key(self, key):
653-
import base64
654-
655653
return base64.b85encode(str(key).encode("utf-8"))
656654

657655
def __len__(self):
@@ -690,8 +688,6 @@ def __init__(self, cache, prefix: str = ""):
690688
self._prefix = bytes(prefix, "utf-8")
691689

692690
def _key(self, key):
693-
import base64
694-
695691
return self._prefix + base64.b85encode(str(key).encode("utf-8"))
696692

697693

docs/VERSIONS.md

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ Install [package](https://pypi.org/project/CacheToolsUtils/) from
1919
Maybe the existing client can do that with appropriate options?
2020
- `cached`: add `contains` and `delete` parameters to change names?
2121
- I cannot say that all this is clear wrt `str` vs `bytes` vs whatever…
22+
- add integrity check to `EncryptedCache`.
23+
24+
## ? on ?
25+
26+
Code cleanup.
2227

2328
## 10.0 on 2024-12-07
2429

0 commit comments

Comments
 (0)