File: pyi_md5pickuphelper.py

package info (click to toggle)
displaycal-py3 3.9.16-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 29,120 kB
  • sloc: python: 115,777; javascript: 11,540; xml: 598; sh: 257; makefile: 173
file content (16 lines) | stat: -rw-r--r-- 336 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- coding: utf-8 -*-

from sys import platform

if platform not in ("darwin", "win32"):
    try:
        import _md5
    except ImportError:
        _md5 = None
try:
    from hashlib import md5
except ImportError as exception:
    if platform not in ("darwin", "win32") and _md5:
        md5 = _md5
    else:
        raise exception