Skip to content

Commit 16664f4

Browse files
committed
Fix for Julia 0.6
1 parent 767b6b3 commit 16664f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

julia/pyjulia_helper.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,16 @@ const orig_stdout = Ref{IO}()
2020
const orig_stderr = Ref{IO}()
2121

2222
function __init__()
23+
@static if VERSION < v"0.7-"
24+
orig_stdin[] = STDIN
25+
orig_stdout[] = STDOUT
26+
orig_stderr[] = STDERR
27+
else
2328
orig_stdin[] = stdin
2429
orig_stdout[] = stdout
2530
orig_stderr[] = stderr
2631
end
32+
end
2733

2834
"""
2935
num_utf8_trailing(d::Vector{UInt8})

0 commit comments

Comments
 (0)