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

Commit

Permalink
Fix interpolation in depwarn (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnoack authored and tkelman committed Feb 8, 2017
1 parent 1545c46 commit cf77803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Requests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ for kind in [:Response, :Request]
@eval Base.String(r::$kind) = text(r)
if VERSION < v"0.6.0-dev.2521"
@eval function Base.bytestring(r::$kind)
Base.depwarn("bytestring(r::$kind) is deprecated, use String(r) instead.", :bytestring)
Base.depwarn("bytestring(r::$($kind)) is deprecated, use String(r) instead.", :bytestring)
String(r)
end
end
Expand All @@ -103,7 +103,7 @@ for kind in [:Response, :Request]
@eval Base.readstring(r::$kind) = text(r)
if VERSION < v"0.6.0-dev.2521"
@eval function Base.readall(r::$kind)
Base.depwarn("readall(r::$kind) is deprecated, use readstring(r) instead.", :readall)
Base.depwarn("readall(r::$($kind)) is deprecated, use readstring(r) instead.", :readall)
readstring(r)
end
end
Expand Down

0 comments on commit cf77803

Please sign in to comment.