Skip to content

Commit 9112e39

Browse files
committed
Fake implementation of marshal.dumps method.
1 parent d51fa2e commit 9112e39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/MarshalModuleBuiltins.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ abstract static class DumpsNode extends PythonBuiltinNode {
6161
@SuppressWarnings("unused")
6262
@Specialization
6363
Object doit(Object value, Object version) {
64-
throw raise(NotImplementedError, "marshal.dumps");
64+
// TODO this is just fake implemention, which satisfy pip installer
65+
return factory().createBytes(value.toString().getBytes());
6566
}
6667
}
6768

0 commit comments

Comments
 (0)