Mercurial > hgrepos > Python > apps > py-cutils
view shasum.py @ 173:e081b6ee5570
treesum.py now runs on Python3.4 also: use a workaround for its missing byte % formatting.
No extra module is required for it to run using sha SHA and SHA-2 family of
digests.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 10 Jan 2025 12:46:44 +0100 |
| parents | 1e5127028254 |
| children | 48430941c18c |
line wrap: on
line source
# -*- coding: utf-8 -*- # :- # :Copyright: (c) 2020-2025 Franz Glasner # :License: BSD-3-Clause # :- r"""Pure Python implementation of `shasum`. """ from __future__ import absolute_import import sys import cutils.shasum sys.exit(cutils.shasum.main())
