Skip to content

Commit 2facdf3

Browse files
author
Dani Carles
committed
Merge branch 'master' of https://github.com/danic/pythonnet
2 parents 7e82363 + f5621fc commit 2facdf3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/monoclr/pynetinit.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ PyNet_Args* PyNet_Init(int ext) {
4747
* mono_runtime_exec_managed_code(pn_args->domain, main_thread_handler,
4848
* pn_args);
4949
*/
50-
50+
5151
main_thread_handler(pn_args);
5252

5353
if (pn_args->error != NULL) {
5454
PyErr_SetString(PyExc_ImportError, pn_args->error);
5555
}
5656
return pn_args;
57-
}
57+
}
5858

5959
// Shuts down PythonNet and cleans up Mono
6060
void PyNet_Finalize(PyNet_Args *pn_args) {
@@ -67,7 +67,7 @@ void PyNet_Finalize(PyNet_Args *pn_args) {
6767
}
6868
pn_args->shutdown = NULL;
6969
}
70-
70+
7171
if (pn_args->domain) {
7272
mono_jit_cleanup(pn_args->domain);
7373
pn_args->domain = NULL;
@@ -178,7 +178,7 @@ void main_thread_handler (gpointer user_data) {
178178
}
179179
}
180180

181-
// Get string from a Mono exception
181+
// Get string from a Mono exception
182182
char* PyNet_ExceptionToString(MonoObject *e) {
183183
MonoMethodDesc* mdesc = mono_method_desc_new(":ToString()", FALSE);
184184
MonoMethod* mmethod = mono_method_desc_search_in_class(mdesc, mono_get_object_class());
@@ -189,4 +189,3 @@ char* PyNet_ExceptionToString(MonoObject *e) {
189189
mono_runtime_invoke(mmethod, e, NULL, NULL);
190190
return mono_string_to_utf8(monoString);
191191
}
192-

0 commit comments

Comments
 (0)