@@ -176,7 +176,7 @@ class _Struct(ctypes.Structure):
176176a ['OptionGroupType' ] = optparse .OptionGroup (_oparser ,"foo" ) # pickle ok
177177a ['OptionType' ] = optparse .Option ('--foo' ) # pickle ok
178178if HAS_CTYPES :
179- z = x if IS_PYPY else a
179+ z = x if ( IS_PYPY and sys . hexversion < 0x30b0df0 ) else a
180180 z ['CCharType' ] = _cchar = ctypes .c_char ()
181181 z ['CWCharType' ] = ctypes .c_wchar () # fail == 2.6
182182 z ['CByteType' ] = ctypes .c_byte ()
@@ -218,7 +218,7 @@ class _Struct(ctypes.Structure):
218218a ['UnicodeIOType' ] = TextIO () # the new StringIO
219219a ['LoggerAdapterType' ] = logging .LoggerAdapter (_logger ,_dict ) # pickle ok
220220if HAS_CTYPES :
221- z = x if IS_PYPY else a
221+ z = x if ( IS_PYPY and sys . hexversion < 0x30b0df0 ) else a
222222 z ['CBoolType' ] = ctypes .c_bool (1 )
223223 z ['CLongDoubleType' ] = ctypes .c_longdouble ()
224224 del z
@@ -227,7 +227,7 @@ class _Struct(ctypes.Structure):
227227a ['OrderedDictType' ] = collections .OrderedDict (_dict )
228228a ['CounterType' ] = collections .Counter (_dict )
229229if HAS_CTYPES :
230- z = x if IS_PYPY else a
230+ z = x if ( IS_PYPY and sys . hexversion < 0x30b0df0 ) else a
231231 z ['CSSizeTType' ] = ctypes .c_ssize_t ()
232232 del z
233233# generic operating system services (CH 15)
0 commit comments