| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -151,9 +151,9 @@ public class Runtime | |||
| 151 | 151 | internal static object IsFinalizingLock = new object(); | |
| 152 | 152 | internal static bool IsFinalizing; | |
| 153 | 153 | ||
| 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; | ||
| 157 | 157 | ||
| 158 | 158 | /// <summary> | |
| 159 | 159 | /// Encoding to use to convert Unicode to/from Managed to Native | |
@@ -165,10 +165,6 @@ public class Runtime | |||
| 165 | 165 | /// </summary> | |
| 166 | 166 | internal static void Initialize() | |
| 167 | 167 | { | |
| 168 | - Is32Bit = IntPtr.Size == 4; | ||
| 169 | - IsPython2 = pyversionnumber < 30; | ||
| 170 | - IsPython3 = pyversionnumber >= 30; | ||
| 171 | - | ||
| 172 | 168 | if (Py_IsInitialized() == 0) | |
| 173 | 169 | { | |
| 174 | 170 | Py_Initialize(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments