@@ -38,7 +38,7 @@ public static IntPtr PyInit_clr()
3838 public static void initclr ( )
3939#endif
4040 {
41- debugPrint ( "Attempting to load 'Python.Runtime' using standard binding rules." ) ;
41+ DebugPrint ( "Attempting to load 'Python.Runtime' using standard binding rules." ) ;
4242#if USE_PYTHON_RUNTIME_PUBLIC_KEY_TOKEN
4343 var pythonRuntimePublicKeyTokenData = new byte [ ] { 0x50 , 0x00 , 0xfe , 0xa6 , 0xcb , 0xa7 , 0x02 , 0xdd } ;
4444#endif
@@ -64,11 +64,11 @@ public static void initclr()
6464 try
6565 {
6666 pythonRuntime = Assembly . Load ( pythonRuntimeName ) ;
67- debugPrint ( "Success loading 'Python.Runtime' using standard binding rules." ) ;
67+ DebugPrint ( "Success loading 'Python.Runtime' using standard binding rules." ) ;
6868 }
6969 catch ( IOException )
7070 {
71- debugPrint ( "'Python.Runtime' not found using standard binding rules." ) ;
71+ DebugPrint ( "'Python.Runtime' not found using standard binding rules." ) ;
7272 try
7373 {
7474 // If the above fails for any reason, we fallback to attempting to load "Python.Runtime.dll"
@@ -87,13 +87,13 @@ public static void initclr()
8787 throw new InvalidOperationException ( executingAssembly . Location ) ;
8888 }
8989 string pythonRuntimeDllPath = Path . Combine ( assemblyDirectory , "Python.Runtime.dll" ) ;
90- debugPrint ( $ "Attempting to load Python.Runtime from: '{ pythonRuntimeDllPath } .' ") ;
90+ DebugPrint ( $ "Attempting to load Python.Runtime from: '{ pythonRuntimeDllPath } '. ") ;
9191 pythonRuntime = Assembly . LoadFrom ( pythonRuntimeDllPath ) ;
92- debugPrint ( $ "Success loading 'Python.Runtime' from: '{ pythonRuntimeDllPath } '.") ;
92+ DebugPrint ( $ "Success loading 'Python.Runtime' from: '{ pythonRuntimeDllPath } '.") ;
9393 }
9494 catch ( InvalidOperationException )
9595 {
96- debugPrint ( "Could not load 'Python.Runtime'." ) ;
96+ DebugPrint ( "Could not load 'Python.Runtime'." ) ;
9797#if PYTHON3
9898 return IntPtr . Zero ;
9999#elif PYTHON2
@@ -118,7 +118,7 @@ public static void initclr()
118118 /// but haven't been able to configure the TRACE from within Python.
119119 /// </summary>
120120 [ Conditional ( "DEBUG" ) ]
121- private static void debugPrint ( string str )
121+ private static void DebugPrint ( string str )
122122 {
123123 Console . WriteLine ( str ) ;
124124 }
0 commit comments