File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -785,9 +785,8 @@ internal static bool PyObject_IsIterable(IntPtr pointer)
785
785
{
786
786
var ob_type = Marshal. ReadIntPtr( pointer , ObjectOffset . ob_type ) ;
787
787
#if PYTHON2
788
- int Py_TPFLAGS_HAVE_ITER = 1 << 7 ;
789
788
long tp_flags = Marshal . ReadInt64 ( ob_type , TypeOffset . tp_flags ) ;
790
- if ( ( tp_flags & Py_TPFLAGS_HAVE_ITER ) == 0 )
789
+ if ( ( tp_flags & TypeFlags . HaveIter ) == 0 )
791
790
return false;
792
791
#endif
793
792
IntPtr tp_iter = Marshal. ReadIntPtr( ob_type , TypeOffset . tp_iter ) ;
@@ -1443,9 +1442,8 @@ internal static bool PyIter_Check(IntPtr pointer)
1443
1442
{
1444
1443
var ob_type = Marshal. ReadIntPtr( pointer, ObjectOffset. ob_type) ;
1445
1444
#if PYTHON2
1446
- int Py_TPFLAGS_HAVE_ITER = 1 << 7 ;
1447
1445
long tp_flags = Marshal. ReadInt64( ob_type, TypeOffset. tp_flags) ;
1448
- if ( ( tp_flags & Py_TPFLAGS_HAVE_ITER ) == 0 )
1446
+ if ( ( tp_flags & TypeFlags . HaveIter ) == 0 )
1449
1447
return false;
1450
1448
#endif
1451
1449
IntPtr tp_iternext = Marshal. ReadIntPtr( ob_type, TypeOffset. tp_iternext) ;
You can’t perform that action at this time.
0 commit comments