shep

Multi-state key stores using bit masks for python3
git clone git://git.defalsify.org/shep.git
Log | Files | Refs | LICENSE

commit 41fa4cd89558d325f2f13ca3f9fd8363ff70fab5
parent 10b2e91ab22fde2726948a6a28b6673e3a587a6a
Author: lash <dev@holbrook.no>
Date:   Sun, 24 Apr 2022 20:53:52 +0000

Correct regex for state recovery from persistnet store

Diffstat:
MCHANGELOG | 2++
Msetup.cfg | 2+-
Mshep/store/base.py | 2+-
Mshep/store/file.py | 1-
4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.2.2 + * Fix composite state factory load regex - 0.2.1 * Add rocksdb backend - 0.2.0 diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = shep -version = 0.2.1rc1 +version = 0.2.2 description = Multi-state key stores using bit masks author = Louis Holbrook author_email = dev@holbrook.no diff --git a/shep/store/base.py b/shep/store/base.py @@ -1,4 +1,4 @@ -re_processedname = r'^_?[A-Z,\.]*$' +re_processedname = r'^_?[A-Z\._]*$' class StoreFactory: diff --git a/shep/store/file.py b/shep/store/file.py @@ -153,7 +153,6 @@ class SimpleFileStoreFactory(StoreFactory): def ls(self): r = [] - import sys for v in os.listdir(self.__path): if re.match(re_processedname, v): r.append(v)