Skip to content

Commit 204be60

Browse files
committed
1 parent 0e202cc commit 204be60

4 files changed

Lines changed: 3 additions & 15 deletions

File tree

apsw/tests/__main__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3981,10 +3981,9 @@ def badfunc(*args):
39813981
self.assertTrue(frame.f_lineno > 100)
39823982
self.assertTrue(frame.f_code.co_name.endswith("-badfunc"))
39833983
# check local variables
3984-
if platform.python_implementation() != "PyPy":
3985-
l = frame.f_locals
3986-
self.assertIn("NumberOfArguments", l)
3987-
self.assertEqual(l["NumberOfArguments"], 3)
3984+
l = frame.f_locals
3985+
self.assertIn("NumberOfArguments", l)
3986+
self.assertEqual(l["NumberOfArguments"], 3)
39883987

39893988
def testLoadExtension(self):
39903989
"Check loading of extensions"

doc/changes.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,8 +863,6 @@ Shell exit for --version etc cleanly exits (:issue:`210`)
863863

864864
Python 3.11 (:issue:`326`) now works.
865865

866-
PyPy3 compiles and mostly works (:issue:`323`).
867-
868866
3.38.1-r1
869867
=========
870868

src/apsw.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,13 +1549,8 @@ formatsqlvalue(PyObject *Py_UNUSED(self), PyObject *value)
15491549

15501550
if (simple)
15511551
{
1552-
#ifdef PYPY_VERSION
1553-
PyErr_Format(PyExc_NotImplementedError, "PyPy has not implemented PyUnicode_CopyCharacters");
1554-
return NULL;
1555-
#else
15561552
PyUnicode_CopyCharacters(strres, 1, value, 0, input_length);
15571553
return strres;
1558-
#endif
15591554
}
15601555

15611556
outpos = 1;

src/util.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,6 @@ apsw_write_unraisable(PyObject *hookobject)
223223
PyObject *result = NULL;
224224

225225
/* fill in the rest of the traceback */
226-
#ifdef PYPY_VERSION
227-
/* do nothing */
228-
#else
229226
PyFrameObject *prev = NULL, *frame = PyThreadState_GetFrame(PyThreadState_GET());
230227
while (frame)
231228
{
@@ -234,7 +231,6 @@ apsw_write_unraisable(PyObject *hookobject)
234231
Py_DECREF(frame);
235232
frame = prev;
236233
}
237-
#endif
238234

239235
/* Get the exception details - we have to use the legacy deprecated API because
240236
unraisable hook structure has the three separate exception fields despite

0 commit comments

Comments
 (0)