diff --git a/src/jsproxy.c b/src/jsproxy.c index 08a4af664..a43816651 100644 --- a/src/jsproxy.c +++ b/src/jsproxy.c @@ -268,9 +268,9 @@ JsProxy_GetBuffer(PyObject* o, Py_buffer* view, int flags) Py_ssize_t byteLength = hiwire_get_byteLength(self->js); - void *ptr; + void* ptr; if (hiwire_is_on_wasm_heap(self->js)) { - ptr = (void *)hiwire_get_byteOffset(self->js); + ptr = (void*)hiwire_get_byteOffset(self->js); } else { if (self->bytes == NULL) { self->bytes = PyBytes_FromStringAndSize(NULL, byteLength); @@ -347,8 +347,9 @@ JsProxy_GetBuffer(PyObject* o, Py_buffer* view, int flags) } static PyObject* -JsProxy_HasBytes(PyObject *o) { - JsProxy* self = (JsProxy *)o; +JsProxy_HasBytes(PyObject* o) +{ + JsProxy* self = (JsProxy*)o; if (self->bytes == NULL) { Py_RETURN_FALSE; diff --git a/src/runpython.c b/src/runpython.c index 4a0219d4d..9594775c5 100644 --- a/src/runpython.c +++ b/src/runpython.c @@ -9,19 +9,19 @@ extern PyObject* globals; -PyObject *eval_code; +PyObject* eval_code; int _runPython(char* code) { - PyObject *py_code; + PyObject* py_code; py_code = PyUnicode_FromString(code); if (py_code == NULL) { 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,13 +46,15 @@ EM_JS(int, runpython_init_js, (), { return 0; }); -int runpython_init_py() { - PyObject *m = PyImport_ImportModule("pyodide"); +int +runpython_init_py() +{ + PyObject* m = PyImport_ImportModule("pyodide"); if (m == NULL) { return 1; } - PyObject *d = PyModule_GetDict(m); + PyObject* d = PyModule_GetDict(m); if (d == NULL) { return 1; } diff --git a/test/test_python.py b/test/test_python.py index dc540cff7..7378d1653 100644 --- a/test/test_python.py +++ b/test/test_python.py @@ -311,4 +311,3 @@ def test_recursive_repr(selenium): "except RecursionError:\n" " result = False\n" "result") -