Skip to content

Commit ff26770

Browse files
committed
Added openssl_md_meth_names to _hashlib.java. This is a crucial prerequisite for std-lib update. Without it, regrtests won't even start running properly after a would-be std-lib update to 2.7.13.
1 parent f451f80 commit ff26770

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/org/python/modules/_hashlib.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
import org.python.core.ClassDictInit;
1010
import org.python.core.Py;
1111
import org.python.core.PyArray;
12+
import org.python.core.PyFrozenSet;
1213
import org.python.core.PyObject;
1314
import org.python.core.PyString;
15+
import org.python.core.PyTuple;
1416
import org.python.core.PyType;
1517
import org.python.core.PyUnicode;
1618
import org.python.core.Untraversable;
@@ -37,6 +39,11 @@ public class _hashlib implements ClassDictInit {
3739
put("sha512", "sha-512");
3840
}};
3941

42+
public static final PyFrozenSet openssl_md_meth_names =
43+
new PyFrozenSet(new PyTuple(Py.newString("md5"), Py.newString("sha1"),
44+
Py.newString("sha224"), Py.newString("sha256"), Py.newString("sha384"),
45+
Py.newString("sha512")));
46+
4047
public static void classDictInit(PyObject dict) {
4148
dict.__setitem__("__name__", Py.newString("_hashlib"));
4249
dict.__setitem__("algorithmMap", null);

0 commit comments

Comments
 (0)