Skip to content

Commit 654c7d2

Browse files
committed
hashlib: Selectively import individual classes to top-level package.
1 parent 9079f4d commit 654c7d2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

hashlib/hashlib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
from .sha256 import *
2-
from .sha512 import *
1+
from .sha256 import sha224, sha256
2+
from .sha512 import sha384, sha512

hashlib/metadata.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
srctype=pypy
22
type=package
3-
version=2.4.0-1
3+
version=2.4.0-2

hashlib/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
setup(name='micropython-hashlib',
9-
version='2.4.0-1',
9+
version='2.4.0-2',
1010
description='PyPy hashlib module ported to MicroPython',
1111
long_description='This is a module ported from PyPy standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.',
1212
url='https://github.com/micropython/micropython/issues/405',

0 commit comments

Comments
 (0)