|
3 | 3 | // Need to port the 10,000 lines of compiling machinery, into a |
4 | 4 | // different module probably. |
5 | 5 | // |
6 | | -// In the mean time, cheat horrendously by calling python3.3 to do our |
| 6 | +// In the mean time, cheat horrendously by calling python3.4 to do our |
7 | 7 | // dirty work under the hood! |
8 | 8 |
|
9 | 9 | package compile |
10 | 10 |
|
11 | 11 | import ( |
12 | 12 | "bytes" |
13 | 13 | "fmt" |
14 | | - "github.com/ncw/gpython/marshal" |
15 | | - "github.com/ncw/gpython/py" |
16 | 14 | "os" |
17 | 15 | "os/exec" |
18 | 16 | "strings" |
| 17 | + |
| 18 | + "github.com/ncw/gpython/marshal" |
| 19 | + "github.com/ncw/gpython/py" |
19 | 20 | ) |
20 | 21 |
|
21 | 22 | // Compile(source, filename, mode, flags, dont_inherit) -> code object |
@@ -48,15 +49,15 @@ sys.stdout.close()`, |
48 | 49 | flags, |
49 | 50 | dont_inherit_str, |
50 | 51 | ) |
51 | | - cmd := exec.Command("python3.3", "-c", code) |
| 52 | + cmd := exec.Command("python3.4", "-c", code) |
52 | 53 | cmd.Stdin = strings.NewReader(str) |
53 | 54 | var out bytes.Buffer |
54 | 55 | cmd.Stdout = &out |
55 | 56 | var stderr bytes.Buffer |
56 | 57 | cmd.Stderr = &stderr |
57 | 58 | err := cmd.Run() |
58 | 59 | if err != nil { |
59 | | - fmt.Fprintf(os.Stderr, "--- Failed to run python3.3 compile ---\n") |
| 60 | + fmt.Fprintf(os.Stderr, "--- Failed to run python3.4 compile ---\n") |
60 | 61 | fmt.Fprintf(os.Stderr, "--------------------\n") |
61 | 62 | os.Stderr.Write(stderr.Bytes()) |
62 | 63 | fmt.Fprintf(os.Stderr, "--------------------\n") |
|
0 commit comments