summary refs log tree commit diff stats
path: root/lib/pure/uri.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-05-04 14:03:16 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-05-05 21:45:07 +0200
commitbbb0fd4eb734ed1a0445865077c27b05b46d0cbd (patch)
tree6a3fd735f1d9f39a4f1610d370d572b7826bafbe /lib/pure/uri.nim
parent608017801d3625dc8c7991073a0ef84440314c24 (diff)
downloadNim-bbb0fd4eb734ed1a0445865077c27b05b46d0cbd.tar.gz
remove deprecated stuff from the stdlib; introduce better deprecation warnings
Diffstat (limited to 'lib/pure/uri.nim')
-rw-r--r--lib/pure/uri.nim8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/pure/uri.nim b/lib/pure/uri.nim
index 36ab00580..dd8040928 100644
--- a/lib/pure/uri.nim
+++ b/lib/pure/uri.nim
@@ -18,14 +18,12 @@ type
     hostname*, port*, path*, query*, anchor*: string
     opaque*: bool
 
-{.deprecated: [TUrl: Url, TUri: Uri].}
-
 {.push warning[deprecated]: off.}
-proc `$`*(url: Url): string {.deprecated.} =
+proc `$`*(url: Url): string {.deprecated: "use Uri instead".} =
   ## **Deprecated since 0.9.6**: Use ``Uri`` instead.
   return string(url)
 
-proc `/`*(a, b: Url): Url {.deprecated.} =
+proc `/`*(a, b: Url): Url {.deprecated: "use Uri instead".} =
   ## Joins two URLs together, separating them with / if needed.
   ##
   ## **Deprecated since 0.9.6**: Use ``Uri`` instead.
@@ -40,7 +38,7 @@ proc `/`*(a, b: Url): Url {.deprecated.} =
     urlS.add(bs)
   result = Url(urlS)
 
-proc add*(url: var Url, a: Url) {.deprecated.} =
+proc add*(url: var Url, a: Url) {.deprecated: "use Uri instead".} =
   ## Appends url to url.
   ##
   ## **Deprecated since 0.9.6**: Use ``Uri`` instead.