8000 all: cosmetics · hdfsun/go-python@d4036f6 · GitHub
[go: up one dir, main page]

Skip 8000 to content

Commit d4036f6

Browse files
committed
all: cosmetics
1 parent 06cbd38 commit d4036f6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

exceptions.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ func PyErr_NewExceptionWithDoc(name, doc string, base, dict *PyObject) *PyObject
293293

294294
// void PyErr_WriteUnraisable(PyObject *obj)
295295
// This utility function prints a warning message to sys.stderr when an exception has been set but it is impossible for the interpreter to actually raise the exception. It is used, for example, when an exception occurs in an __del__() method.
296-
297296
// The function is called with a single argument obj that identifies the context in which the unraisable exception occurred. The repr of obj will be printed in the warning message.
298297
func PyErr_WriteUnraisable(obj *PyObject) {
299298
C.PyErr_WriteUnraisable(topy(obj))

object.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package python
88
//int _gopy_PyObject_DelAttrString(PyObject *o, const char *attr_name)
99
//{return PyObject_DelAttrString(o,attr_name);}
1010
import "C"
11+
1112
import "unsafe"
1213
import "os"
1314
import "fmt"
@@ -24,6 +25,7 @@ func (self *PyObject) topy() *C.PyObject {
2425
func topy(self *PyObject) *C.PyObject {
2526
return self.ptr
2627
}
28+
2729
func togo(obj *C.PyObject) *PyObject {
2830
if obj == nil {
2931
return nil

0 commit comments

Comments
 (0)
0