File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,9 +151,9 @@ public class Runtime
151151 internal static object IsFinalizingLock = new object ( ) ;
152152 internal static bool IsFinalizing ;
153153
154- internal static bool Is32Bit ;
155- internal static bool IsPython2 ;
156- internal static bool IsPython3 ;
154+ internal static bool Is32Bit = IntPtr . Size == 4 ;
155+ internal static bool IsPython2 = pyversionnumber < 30 ;
156+ internal static bool IsPython3 = pyversionnumber >= 30 ;
157157
158158 /// <summary>
159159 /// Encoding to use to convert Unicode to/from Managed to Native
@@ -165,10 +165,6 @@ public class Runtime
165165 /// </summary>
166166 internal static void Initialize ( )
167167 {
168- Is32Bit = IntPtr . Size == 4 ;
169- IsPython2 = pyversionnumber < 30 ;
170- IsPython3 = pyversionnumber >= 30 ;
171-
172168 if ( Py_IsInitialized ( ) == 0 )
173169 {
174170 Py_Initialize ( ) ;
You can’t perform that action at this time.
0 commit comments