Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9339448
D49.id181.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
852 B
Subscribers
None
D49.id181.diff
View Options
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
Details
Attached
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
Attached To
D49: Arbitrary slicing on PathSlicingObjStorage
Event Timeline
Log In to Comment