Skip to content

Commit

Permalink
Fix deprecation warning about readall() with Julia 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Feb 11, 2016
1 parent 92332ff commit fd8b830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Expand Up @@ -4,5 +4,5 @@ StatsBase 0.3.9+
GZip
SortingAlgorithms
Reexport
Compat
Compat 0.7.9
Docile
3 changes: 2 additions & 1 deletion test/utils.jl
@@ -1,6 +1,7 @@
module TestUtils
using Base.Test
using DataFrames
using Compat

import DataFrames: identifier

Expand All @@ -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'.")
Expand Down

0 comments on commit fd8b830

Please sign in to comment.