From 5de0db2391c719ef6c484813cc4aee61da355160 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Tue, 27 Oct 2020 17:09:45 +0100 Subject: remove traces of Python2 from C code It will be assumed that Python is always Python 3. All checks for Python 2 are removed. This is the second part of cleaning up the C code from references to Python 2. Task-number: PYSIDE-904 Change-Id: I3006412c2a5bb65402101b0aac5a5f2fc79ce2f8 Reviewed-by: Cristian Maureira-Fredes --- sources/shiboken2/tests/samplebinding/typesystem_sample.xml | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sources/shiboken2/tests/samplebinding/typesystem_sample.xml') diff --git a/sources/shiboken2/tests/samplebinding/typesystem_sample.xml b/sources/shiboken2/tests/samplebinding/typesystem_sample.xml index d0ccbb349..b310f8d62 100644 --- a/sources/shiboken2/tests/samplebinding/typesystem_sample.xml +++ b/sources/shiboken2/tests/samplebinding/typesystem_sample.xml @@ -2141,12 +2141,7 @@ - - #if PY_VERSION_HEX < 0x03000000 - Shiboken::SbkType<ByteArray>()->tp_as_buffer = &SbkByteArrayBufferProc; - Shiboken::SbkType<ByteArray>()->tp_flags |= Py_TPFLAGS_HAVE_GETCHARBUFFER; - #endif -- cgit v1.2.3