Skip to content

Commit b8f93bd

Browse files
committed
Fix imports and docs after move to go-python org
1 parent b8a7165 commit b8f93bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+74
-74
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# gpython
22

3-
[![Build Status](https://travis-ci.org/ncw/gpython.svg?branch=master)](https://travis-ci.org/ncw/gpython)
4-
[![GoDoc](https://godoc.org/github.com/ncw/gpython?status.svg)](https://godoc.org/github.com/ncw/gpython)
3+
[![Build Status](https://travis-ci.org/go-python/gpython.svg?branch=master)](https://travis-ci.org/go-python/gpython)
4+
[![GoDoc](https://godoc.org/github.com/go-python/gpython?status.svg)](https://godoc.org/github.com/go-python/gpython)
55

66
gpython is a part re-implementation / part port of the Python 3.4
77
interpreter to the Go language, "batteries not included".
@@ -27,11 +27,11 @@ modules are written in C not python. The converted modules are:
2727

2828
Gpython is a Go program and comes as a single binary file.
2929

30-
Download the relevant binary from here: https://github.com/ncw/gpython/releases
30+
Download the relevant binary from here: https://github.com/go-python/gpython/releases
3131

3232
Or alternatively if you have Go installed use
3333

34-
go get github.com/ncw/gpython
34+
go get github.com/go-python/gpython
3535

3636
and this will build the binary in `$GOPATH/bin`. You can then modify
3737
the source and submit patches.

ast/asdl_go.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ def main(srcfile):
12311231
f = open(p, "w")
12321232
f.write(auto_gen_msg)
12331233
f.write('package ast\n')
1234-
f.write('import "github.com/ncw/gpython/py"\n')
1234+
f.write('import "github.com/go-python/gpython/py"\n')
12351235
c = ChainOfVisitors(TypeDefVisitor(f),
12361236
StructVisitor(f),
12371237
PrototypeVisitor(f),

ast/ast.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package ast
66
import (
77
"fmt"
88

9-
"github.com/ncw/gpython/py"
9+
"github.com/go-python/gpython/py"
1010
)
1111

1212
type Identifier py.String

ast/dump.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"reflect"
66
"strings"
77

8-
"github.com/ncw/gpython/py"
8+
"github.com/go-python/gpython/py"
99
)
1010

1111
func dumpItem(v interface{}) string {

ast/dump_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package ast
33
import (
44
"testing"
55

6-
"github.com/ncw/gpython/py"
6+
"github.com/go-python/gpython/py"
77
)
88

99
func TestDump(t *testing.T) {

builtin/builtin.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"fmt"
66
"unicode/utf8"
77

8-
"github.com/ncw/gpython/compile"
9-
"github.com/ncw/gpython/py"
8+
"github.com/go-python/gpython/compile"
9+
"github.com/go-python/gpython/py"
1010
)
1111

1212
const builtin_doc = `Built-in functions, exceptions, and other objects.

builtin/builtin_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package builtin_test
33
import (
44
"testing"
55

6-
"github.com/ncw/gpython/pytest"
6+
"github.com/go-python/gpython/pytest"
77
)
88

99
func TestVm(t *testing.T) {

compile/compile.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import (
99
"log"
1010
"strings"
1111

12-
"github.com/ncw/gpython/ast"
13-
"github.com/ncw/gpython/parser"
14-
"github.com/ncw/gpython/py"
15-
"github.com/ncw/gpython/symtable"
16-
"github.com/ncw/gpython/vm"
12+
"github.com/go-python/gpython/ast"
13+
"github.com/go-python/gpython/parser"
14+
"github.com/go-python/gpython/py"
15+
"github.com/go-python/gpython/symtable"
16+
"github.com/go-python/gpython/vm"
1717
)
1818

1919
type loopType byte

compile/compile_data_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package compile
44

55
import (
6-
"github.com/ncw/gpython/py"
6+
"github.com/go-python/gpython/py"
77
)
88

99
var compileTestData = []struct {

compile/compile_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"os/exec"
1111
"testing"
1212

13-
"github.com/ncw/gpython/py"
13+
"github.com/go-python/gpython/py"
1414
)
1515

1616
func EqString(t *testing.T, name string, a, b string) {

compile/instructions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package compile
22

3-
import "github.com/ncw/gpython/vm"
3+
import "github.com/go-python/gpython/vm"
44

55
// FIXME detect if label is not in the instruction stream by setting
66
// Pos to 0xFFFF say by default, ie we made a label but forgot to add

compile/legacy.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"os/exec"
88
"strings"
99

10-
"github.com/ncw/gpython/marshal"
11-
"github.com/ncw/gpython/py"
10+
"github.com/go-python/gpython/marshal"
11+
"github.com/go-python/gpython/py"
1212
)
1313

1414
// Compile with python3.4 - not used any more but keep for the moment!

compile/make_compile_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ def main():
690690
package compile
691691
692692
import (
693-
"github.com/ncw/gpython/py"
693+
"github.com/go-python/gpython/py"
694694
)
695695
696696
var compileTestData = []struct {

importlib/importlib.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package py
55
import (
66
"log"
77

8-
"github.com/ncw/gpython/marshal"
8+
"github.com/go-python/gpython/marshal"
99
)
1010

1111
// Load the frozen module

main.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ import (
77
"fmt"
88
"runtime/pprof"
99

10-
_ "github.com/ncw/gpython/builtin"
11-
"github.com/ncw/gpython/repl"
12-
//_ "github.com/ncw/gpython/importlib"
10+
_ "github.com/go-python/gpython/builtin"
11+
"github.com/go-python/gpython/repl"
12+
//_ "github.com/go-python/gpython/importlib"
1313
"io/ioutil"
1414
"log"
1515
"os"
1616
"strings"
1717

18-
"github.com/ncw/gpython/compile"
19-
"github.com/ncw/gpython/marshal"
20-
_ "github.com/ncw/gpython/math"
21-
"github.com/ncw/gpython/py"
22-
pysys "github.com/ncw/gpython/sys"
23-
_ "github.com/ncw/gpython/time"
24-
"github.com/ncw/gpython/vm"
18+
"github.com/go-python/gpython/compile"
19+
"github.com/go-python/gpython/marshal"
20+
_ "github.com/go-python/gpython/math"
21+
"github.com/go-python/gpython/py"
22+
pysys "github.com/go-python/gpython/sys"
23+
_ "github.com/go-python/gpython/time"
24+
"github.com/go-python/gpython/vm"
2525
)
2626

2727
// Globals

marshal/marshal.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"math/big"
1111
"strconv"
1212

13-
"github.com/ncw/gpython/py"
14-
"github.com/ncw/gpython/vm"
13+
"github.com/go-python/gpython/py"
14+
"github.com/go-python/gpython/vm"
1515
)
1616

1717
const (

math/math.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"math"
1313
"math/big"
1414

15-
"github.com/ncw/gpython/py"
15+
"github.com/go-python/gpython/py"
1616
)
1717

1818
/* Here are some comments from Tim Peters, extracted from the

math/math_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package math_test
33
import (
44
"testing"
55

6-
"github.com/ncw/gpython/pytest"
6+
"github.com/go-python/gpython/pytest"
77
)
88

99
func TestVm(t *testing.T) {

notes.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ FIXME need to be able to tell classes an instances apart!
210210
Put C modules in sub directory
211211
Make an all submodule so can insert all of them easily with
212212

213-
import _ "github.com/ncw/gpython/stdlib/all"
213+
import _ "github.com/go-python/gpython/stdlib/all"
214214

215215
Factor main code into submodule so gpython is minimal.
216216

parser/grammar.y

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package parser
66

77
import (
88
"fmt"
9-
"github.com/ncw/gpython/py"
10-
"github.com/ncw/gpython/ast"
9+
"github.com/go-python/gpython/py"
10+
"github.com/go-python/gpython/ast"
1111
)
1212

1313
// NB can put code blocks in not just at the end

parser/grammar_data_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package parser
44

55
import (
6-
"github.com/ncw/gpython/py"
6+
"github.com/go-python/gpython/py"
77
)
88

99
var grammarTestData = []struct {

parser/grammar_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"flag"
77
"testing"
88

9-
"github.com/ncw/gpython/ast"
10-
"github.com/ncw/gpython/py"
9+
"github.com/go-python/gpython/ast"
10+
"github.com/go-python/gpython/py"
1111
)
1212

1313
var debugLevel = flag.Int("debugLevel", 0, "Debug level 0-4")

parser/lexer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"strings"
1515
"unicode"
1616

17-
"github.com/ncw/gpython/ast"
18-
"github.com/ncw/gpython/py"
17+
"github.com/go-python/gpython/ast"
18+
"github.com/go-python/gpython/py"
1919
)
2020

2121
// The parser expects the lexer to return 0 on EOF. Give it a name

parser/lexer_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"math"
88
"testing"
99

10-
"github.com/ncw/gpython/ast"
11-
"github.com/ncw/gpython/py"
10+
"github.com/go-python/gpython/ast"
11+
"github.com/go-python/gpython/py"
1212
)
1313

1414
func TestCountIndent(t *testing.T) {

parser/make_grammar_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def main():
493493
package parser
494494
495495
import (
496-
"github.com/ncw/gpython/py"
496+
"github.com/go-python/gpython/py"
497497
)
498498
499499
var grammarTestData = []struct {

parser/stringescape.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"strconv"
66

7-
"github.com/ncw/gpython/py"
7+
"github.com/go-python/gpython/py"
88
)
99

1010
// DecodeEscape unescapes a backslash-escaped buffer

parser/stringescape_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"testing"
66

7-
"github.com/ncw/gpython/py"
7+
"github.com/go-python/gpython/py"
88
)
99

1010
func TestDecodeEscape(t *testing.T) {

parser/testparser/testparser.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"log"
88
"os"
99

10-
"github.com/ncw/gpython/compile"
11-
"github.com/ncw/gpython/parser"
10+
"github.com/go-python/gpython/compile"
11+
"github.com/go-python/gpython/parser"
1212
)
1313

1414
var (

parser/y.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import __yyfmt__ "fmt"
88

99
import (
1010
"fmt"
11-
"github.com/ncw/gpython/ast"
12-
"github.com/ncw/gpython/py"
11+
"github.com/go-python/gpython/ast"
12+
"github.com/go-python/gpython/py"
1313
)
1414

1515
// NB can put code blocks in not just at the end

py/py_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package py_test
33
import (
44
"testing"
55

6-
"github.com/ncw/gpython/pytest"
6+
"github.com/go-python/gpython/pytest"
77
)
88

99
func TestPy(t *testing.T) {

pytest/pytest.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"strings"
88
"testing"
99

10-
_ "github.com/ncw/gpython/builtin"
11-
"github.com/ncw/gpython/compile"
12-
"github.com/ncw/gpython/py"
13-
"github.com/ncw/gpython/vm"
10+
_ "github.com/go-python/gpython/builtin"
11+
"github.com/go-python/gpython/compile"
12+
"github.com/go-python/gpython/py"
13+
"github.com/go-python/gpython/vm"
1414
)
1515

1616
// Run the code in str

repl/repl.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"sort"
1111
"strings"
1212

13-
"github.com/ncw/gpython/compile"
14-
"github.com/ncw/gpython/py"
15-
"github.com/ncw/gpython/vm"
13+
"github.com/go-python/gpython/compile"
14+
"github.com/go-python/gpython/py"
15+
"github.com/go-python/gpython/vm"
1616
"github.com/peterh/liner"
1717
)
1818

symtable/make_symtable_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def main():
305305
package symtable
306306
307307
import (
308-
"github.com/ncw/gpython/py"
308+
"github.com/go-python/gpython/py"
309309
)
310310
311311
var symtableTestData = []struct {

symtable/symtable.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
"sort"
1818
"strings"
1919

20-
"github.com/ncw/gpython/ast"
21-
"github.com/ncw/gpython/py"
20+
"github.com/go-python/gpython/ast"
21+
"github.com/go-python/gpython/py"
2222
)
2323

2424
//go:generate stringer -type=Scope,BlockType -output stringer.go

symtable/symtable_data_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package symtable
44

55
import (
6-
"github.com/ncw/gpython/py"
6+
"github.com/go-python/gpython/py"
77
)
88

99
var symtableTestData = []struct {

0 commit comments

Comments
 (0)