Skip to content

Commit 8e1e0b2

Browse files
committed
Update to use compiler from python3.4
1 parent a7d0488 commit 8e1e0b2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

compile/compile.go

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33
// Need to port the 10,000 lines of compiling machinery, into a
44
// different module probably.
55
//
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
77
// dirty work under the hood!
88

99
package compile
1010

1111
import (
1212
"bytes"
1313
"fmt"
14-
"github.com/ncw/gpython/marshal"
15-
"github.com/ncw/gpython/py"
1614
"os"
1715
"os/exec"
1816
"strings"
17+
18+
"github.com/ncw/gpython/marshal"
19+
"github.com/ncw/gpython/py"
1920
)
2021

2122
// Compile(source, filename, mode, flags, dont_inherit) -> code object
@@ -48,15 +49,15 @@ sys.stdout.close()`,
4849
flags,
4950
dont_inherit_str,
5051
)
51-
cmd := exec.Command("python3.3", "-c", code)
52+
cmd := exec.Command("python3.4", "-c", code)
5253
cmd.Stdin = strings.NewReader(str)
5354
var out bytes.Buffer
5455
cmd.Stdout = &out
5556
var stderr bytes.Buffer
5657
cmd.Stderr = &stderr
5758
err := cmd.Run()
5859
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")
6061
fmt.Fprintf(os.Stderr, "--------------------\n")
6162
os.Stderr.Write(stderr.Bytes())
6263
fmt.Fprintf(os.Stderr, "--------------------\n")

0 commit comments

Comments
 (0)