Skip to content

Commit

Permalink
Make show for Options work on Julia 1.0
Browse files Browse the repository at this point in the history
`dateformat` can be `nothing` and in this case Julia 1.0 errors. This PR fixes the error.
  • Loading branch information
bkamins authored Aug 13, 2018
1 parent 449194e commit 6acdd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CSV.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function Base.show(io::IO,op::Options)
println(io, " quotechar: '", Char(op.quotechar), "'")
print(io, " escapechar: '"); escape_string(io, string(Char(op.escapechar)), "\\"); println(io, "'")
print(io, " missingstring: \""); escape_string(io, isempty(op.missingstring) ? "" : String(collect(op.missingstring)), "\\"); println(io, "\"")
println(io, " dateformat: ", op.dateformat)
println(io, " dateformat: ", op.dateformat == nothing ? "" : op.dateformat)
println(io, " decimal: '", Char(op.decimal), "'")
println(io, " truestring: '$(String(op.truestring))'")
println(io, " falsestring: '$(String(op.falsestring))'")
Expand Down

0 comments on commit 6acdd19

Please sign in to comment.