From ce69f1e03781df69721cc7e3001c9461261b5bc6 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 26 Jan 2016 13:34:08 +0100 Subject: [PATCH] Revert two deprecation changes --- lib/deprecated/pure/sockets.nim | 2 +- lib/impure/re.nim | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/deprecated/pure/sockets.nim b/lib/deprecated/pure/sockets.nim index 2040338b6..f7d0950d8 100644 --- a/lib/deprecated/pure/sockets.nim +++ b/lib/deprecated/pure/sockets.nim @@ -702,7 +702,7 @@ proc getHostByAddr*(ip: string): Hostent {.tags: [ReadIOEffect].} = var s = posix.gethostbyaddr(addr(myaddr), sizeof(myaddr).Socklen, cint(posix.AF_INET)) if s == nil: - raise newException(OSError, $hstrerror(h_errno)) + raiseOSError(osLastError(), $hstrerror(h_errno)) result.name = $s.h_name result.aliases = cstringArrayToSeq(s.h_aliases) diff --git a/lib/impure/re.nim b/lib/impure/re.nim index 95ab95b17..60bb6c77f 100644 --- a/lib/impure/re.nim +++ b/lib/impure/re.nim @@ -25,8 +25,6 @@ ## .. include:: ../doc/regexprs.txt ## -{.deprecated.} - import pcre, strutils, rtarrays