Skip to content
This repository has been archived by the owner on May 5, 2019. It is now read-only.

Commit

Permalink
NullableArrays.unsafe_get -> compat(unsafe_get)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjprybol committed Mar 15, 2017
1 parent ed8a515 commit 1636a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/abstractdatatable/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function printtable(io::IO,
if !isnull(dt[j][i])
if ! (etypes[j] <: Real)
print(io, quotemark)
x = isa(dt[i, j], Nullable) ? NullableArrays.unsafe_get(dt[i, j]) : dt[i, j]
x = isa(dt[i, j], Nullable) ? @compat(unsafe_get(dt[i, j])) : dt[i, j]

This comment has been minimized.

Copy link
@nalimilan

nalimilan Mar 15, 2017

Member

You don't need @compat, that function is exported from Compat.

escapedprint(io, x, quotestr)
print(io, quotemark)
else
Expand Down Expand Up @@ -168,7 +168,7 @@ function Base.show(io::IO, ::MIME"text/latex", dt::AbstractDataTable)
write(io, " & ")
cell = dt[row,col]
if !isnull(cell)
content = isa(cell, Nullable) ? NullableArrays.unsafe_get(cell) : cell
content = isa(cell, Nullable) ? @compat(unsafe_get(cell)) : cell
if mimewritable(MIME("text/latex"), content)
show(io, MIME("text/latex"), content)
else
Expand Down

0 comments on commit 1636a0c

Please sign in to comment.