Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/objstorage/objstorage.py
- This file was moved from swh/storage/objstorage.py.
# Copyright (C) 2015 The Software Heritage developers | # Copyright (C) 2015 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import gzip | import gzip | ||||
import os | import os | ||||
import shutil | import shutil | ||||
import tempfile | import tempfile | ||||
from contextlib import contextmanager | from contextlib import contextmanager | ||||
from .exc import ObjNotFoundError, Error | from ..exc import ObjNotFoundError, Error | ||||
olasd: Please keep the relative imports if possible. | |||||
from swh.core import hashutil | from swh.core import hashutil | ||||
ID_HASH_ALGO = 'sha1' | ID_HASH_ALGO = 'sha1' | ||||
# ID_HASH_ALGO = 'sha1_git' | # ID_HASH_ALGO = 'sha1_git' | ||||
GZIP_BUFSIZ = 1048576 | GZIP_BUFSIZ = 1048576 | ||||
▲ Show 20 Lines • Show All 365 Lines • Show Last 20 Lines |
Please keep the relative imports if possible.