Page MenuHomeSoftware Heritage

D49.id181.diff
No OneTemporary

D49.id181.diff

diff --git a/swh/storage/objstorage/objstorage.py b/swh/storage/objstorage/objstorage.py
--- a/swh/storage/objstorage/objstorage.py
+++ b/swh/storage/objstorage/objstorage.py
@@ -4,6 +4,9 @@
# See top-level LICENSE file for more information
+ID_HASH_ALGO = 'sha1'
+
+
class ObjStorage():
""" High-level API to manipulate the Software Heritage object storage.
diff --git a/swh/storage/objstorage/objstorage_pathslicing.py b/swh/storage/objstorage/objstorage_pathslicing.py
--- a/swh/storage/objstorage/objstorage_pathslicing.py
+++ b/swh/storage/objstorage/objstorage_pathslicing.py
@@ -12,12 +12,10 @@
from swh.core import hashutil
-from .objstorage import ObjStorage
+from .objstorage import ObjStorage, ID_HASH_ALGO
from ..exc import ObjNotFoundError, Error
-ID_HASH_ALGO = 'sha1'
-
GZIP_BUFSIZ = 1048576
DIR_MODE = 0o755

File Metadata

Mime Type
text/plain
Expires
Jul 3 2025, 9:41 AM (5 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3221403

Event Timeline