Mercurial > hgrepos > Python > apps > py-cutils
comparison cutils/shasum.py @ 95:fc2dd6afd594
Style: canonical global variable and import ordering
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Thu, 21 Apr 2022 18:52:53 +0200 |
| parents | 8352da172a3e |
| children | 59253a1e6ef2 |
comparison
equal
deleted
inserted
replaced
| 94:8352da172a3e | 95:fc2dd6afd594 |
|---|---|
| 6 r"""Pure Python implementation of `shasum` | 6 r"""Pure Python implementation of `shasum` |
| 7 | 7 |
| 8 """ | 8 """ |
| 9 | 9 |
| 10 from __future__ import print_function, absolute_import | 10 from __future__ import print_function, absolute_import |
| 11 | |
| 12 from . import (__version__, __revision__) | |
| 13 | 11 |
| 14 | 12 |
| 15 __all__ = [] | 13 __all__ = [] |
| 16 | 14 |
| 17 | 15 |
| 31 except ImportError: | 29 except ImportError: |
| 32 pathlib = None | 30 pathlib = None |
| 33 import re | 31 import re |
| 34 import stat | 32 import stat |
| 35 import sys | 33 import sys |
| 34 | |
| 35 from . import (__version__, __revision__) | |
| 36 | 36 |
| 37 | 37 |
| 38 PY2 = sys.version_info[0] < 3 | 38 PY2 = sys.version_info[0] < 3 |
| 39 | 39 |
| 40 if PY2: | 40 if PY2: |
