From 56eb29f7addf4c9245fed909e6341f6f9212b394 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Mon, 5 Aug 2019 10:56:02 +0200 Subject: [PATCH] Add a SHA1_SIZE constant for use by other packages. --- swh/model/model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swh/model/model.py b/swh/model/model.py index 1c54004f..5f2d960a 100644 --- a/swh/model/model.py +++ b/swh/model/model.py @@ -12,6 +12,8 @@ import dateutil.parser from .identifiers import normalize_timestamp +SHA1_SIZE = 20 + # TODO: Limit this to 20 bytes Sha1Git = bytes -- GitLab