Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4ed645

Browse files
committed
Minor style clean-up runtime/pythonengine
Add missing brackets Organize using/remove unused Align arguments
1 parent 30be9c9 commit b4ed645

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/runtime/pythonengine.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using System;
2-
using System.IO;
3-
using System.Threading;
4-
using System.Reflection;
52
using System.Collections.Generic;
3+
using System.IO;
64
using System.Linq;
5+
using System.Reflection;
76

87
namespace Python.Runtime
98
{
@@ -154,7 +153,9 @@ public static void Initialize(IEnumerable<string> args, bool setSysArgv = true)
154153
Exceptions.Clear();
155154

156155
if (setSysArgv)
156+
{
157157
Py.SetArgv(args);
158+
}
158159

159160
// register the atexit callback (this doesn't use Py_AtExit as the C atexit
160161
// callbacks are called after python is fully finalized but the python ones

src/runtime/runtime.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,11 +1653,14 @@ internal unsafe static extern IntPtr
16531653
EntryPoint = "PyUnicode_FromKindAndData",
16541654
ExactSpelling = true)]
16551655
internal unsafe static extern IntPtr
1656-
PyUnicode_FromKindAndString(int kind,
1656+
PyUnicode_FromKindAndString(
1657+
int kind,
16571658
IntPtr s,
1658-
int size);
1659+
int size
1660+
);
16591661

1660-
internal static unsafe IntPtr PyUnicode_FromKindAndString(int kind,
1662+
internal static unsafe IntPtr PyUnicode_FromKindAndString(
1663+
int kind,
16611664
string s,
16621665
int size)
16631666
{

0 commit comments

Comments
 (0)