From fd8b83082b978f83dd5c8631da7f3246e90d03a3 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Thu, 11 Feb 2016 15:48:44 +0100 Subject: [PATCH] Fix deprecation warning about readall() with Julia 0.5 --- REQUIRE | 2 +- test/utils.jl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/REQUIRE b/REQUIRE index 6391072ef0..8ee8cebd7c 100644 --- a/REQUIRE +++ b/REQUIRE @@ -4,5 +4,5 @@ StatsBase 0.3.9+ GZip SortingAlgorithms Reexport -Compat +Compat 0.7.9 Docile diff --git a/test/utils.jl b/test/utils.jl index b934391240..a416cfc99a 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -1,6 +1,7 @@ module TestUtils using Base.Test using DataFrames + using Compat import DataFrames: identifier @@ -18,7 +19,7 @@ module TestUtils if isfile(f) r1 = r"define reserved-words '\(([^)]+)" r2 = r"define \(parse-block s(?: \([^)]+\))?\)\s+\(parse-Nary s (?:parse-eq '\([^(]*|down '\([^)]+\) '[^']+ ')\(([^)]+)" - body = readall(f) + body = readstring(f) m1, m2 = match(r1, body), match(r2, body) if m1 == nothing || m2 == nothing error("Unable to extract keywords from 'julia-parser.scm'.")