File tree Expand file tree Collapse file tree 15 files changed +16
-20
lines changed Expand file tree Collapse file tree 15 files changed +16
-20
lines changed Original file line number Diff line number Diff line change 11package python
22
3- import "go.nhat.io/cpy3 "
3+ import cpy3 "go.nhat.io/cpy/v3 "
44
55// True is a wrapper of cpy3.Py_True.
66var True = NewObject (cpy3 .Py_True )
Original file line number Diff line number Diff line change 11package python
22
3- import (
4- "go.nhat.io/cpy3"
5- )
3+ import cpy3 "go.nhat.io/cpy/v3"
64
75// Exception is a Python exception.
86type Exception struct { //nolint: errname,stylecheck
Original file line number Diff line number Diff line change 11package python
22
3- import "go.nhat.io/cpy3 "
3+ import cpy3 "go.nhat.io/cpy/v3 "
44
55// IsFloat returns true if the object is a Python float.
66func IsFloat (o PyObjector ) bool {
Original file line number Diff line number Diff line change 44
55require (
66 github.com/stretchr/testify v1.8.4
7- go.nhat.io/cpy3 v0.0.0-20240211052030-bde1bc76d495
7+ go.nhat.io/cpy/v3 v3.11.0
88 go.nhat.io/once v0.2.0
99)
1010
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
1010github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
1111github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk =
1212github.com/stretchr/testify v1.8.4 /go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo =
13- go.nhat.io/cpy3 v0.0.0-20240211052030-bde1bc76d495 h1:F/Mbz9zhl3hyPaxNcuzuvM4Wq1hNRvpgE9TcIVqpTIA =
14- go.nhat.io/cpy3 v0.0.0-20240211052030-bde1bc76d495 /go.mod h1:Rz9ZP/FtMt5KgArTtj6sbeN97Jhtc1+pZfKd/pyMKPI =
13+ go.nhat.io/cpy/v3 v3.11.0 h1:27yQJX9tqaVpbWP7bLGZLb1zk274yJY4gMpfKWenorA =
14+ go.nhat.io/cpy/v3 v3.11.0 /go.mod h1:ZB/O/aVbrq5cbn+3AE04Ae5HeplqFZ3jFgo80MwbR24 =
1515go.nhat.io/once v0.2.0 h1:tIvETkXlxRlguXN7ttubxzfkC7tUngURKl9YSigT4ic =
1616go.nhat.io/once v0.2.0 /go.mod h1:CXQFW8fgGQ9/IMDPkJlcTlQ+00dK3Ul4ggkptzn7fvw =
1717gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
Original file line number Diff line number Diff line change 11package python
22
33import (
4- "go.nhat.io/cpy3 "
4+ cpy3 "go.nhat.io/cpy/v3 "
55 "go.nhat.io/once"
66)
77
Original file line number Diff line number Diff line change 11package python
22
3- import (
4- "go.nhat.io/cpy3"
5- )
3+ import cpy3 "go.nhat.io/cpy/v3"
64
75// ErrPythonInterpreterNotInitialized is the error message when the python interpreter is not initialized.
86var ErrPythonInterpreterNotInitialized = "cannot initialize the python interpreter"
Original file line number Diff line number Diff line change 11package python
22
3- import "go.nhat.io/cpy3 "
3+ import cpy3 "go.nhat.io/cpy/v3 "
44
55// IsInt returns whether the given object is a Python int object.
66func IsInt (o PyObjector ) bool {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package python
33import (
44 "reflect"
55
6- "go.nhat.io/cpy3 "
6+ cpy3 "go.nhat.io/cpy/v3 "
77)
88
99// IsList returns true if the object is a tuple.
Original file line number Diff line number Diff line change 55
66 "github.com/stretchr/testify/assert"
77 "github.com/stretchr/testify/require"
8- "go.nhat.io/cpy3 "
8+ cpy3 "go.nhat.io/cpy/v3 "
99
1010 python3 "go.nhat.io/python/v3"
1111)
You can’t perform that action at this time.
0 commit comments