This commit is contained in:
Michael Droettboom 2018-07-23 11:21:57 -04:00
parent 59bf78f93c
commit 1aa2fc1265
3 changed files with 14 additions and 12 deletions

View File

@ -347,7 +347,8 @@ JsProxy_GetBuffer(PyObject* o, Py_buffer* view, int flags)
}
static PyObject*
JsProxy_HasBytes(PyObject *o) {
JsProxy_HasBytes(PyObject* o)
{
JsProxy* self = (JsProxy*)o;
if (self->bytes == NULL) {

View File

@ -20,8 +20,8 @@ _runPython(char* code)
return pythonexc2js();
}
PyObject *ret = PyObject_CallFunctionObjArgs(
eval_code, py_code, globals, NULL);
PyObject* ret =
PyObject_CallFunctionObjArgs(eval_code, py_code, globals, NULL);
if (ret == NULL) {
return pythonexc2js();
@ -46,7 +46,9 @@ EM_JS(int, runpython_init_js, (), {
return 0;
});
int runpython_init_py() {
int
runpython_init_py()
{
PyObject* m = PyImport_ImportModule("pyodide");
if (m == NULL) {
return 1;

View File

@ -311,4 +311,3 @@ def test_recursive_repr(selenium):
"except RecursionError:\n"
" result = False\n"
"result")