Commit 9bb182d1 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Apparently _md5 also works

Well not really, it crashes the GC by simply existing, but it's close!
parent 9a87ed01
......@@ -268,7 +268,7 @@ SRCS := $(MAIN_SRCS) $(STDLIB_SRCS)
STDLIB_OBJS := stdlib.bc.o stdlib.stripped.bc.o
STDLIB_RELEASE_OBJS := stdlib.release.bc.o
STDMODULES_SRCS := errnomodule.c shamodule.c
STDMODULES_SRCS := errnomodule.c shamodule.c md5.c md5module.c
STDMODULES_SRCS := $(addprefix ../lib_python/2.7_Modules/,$(STDMODULES_SRCS))
# The stdlib objects have slightly longer dependency chains,
......
......@@ -33,6 +33,7 @@
extern "C" void initerrno();
extern "C" void init_sha();
extern "C" void init_md5();
namespace pyston {
......@@ -630,6 +631,7 @@ void setupRuntime() {
initerrno();
init_sha();
// init_md5();
setupSysEnd();
......
# expected: fail
# - warnings about PyString_AsString(), since that is allowed to be modified
try:
import _md5 as md5
except ImportError:
import md5
m = md5.new()
print m.hexdigest()
m.update("aoeu")
print m.hexdigest()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment