diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-08-23 10:16:52 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-08-23 10:16:52 +0200 |
commit | bbfe28ec5c4bafa94fc47fecb42449879f8deb85 (patch) | |
tree | ab7876554cb2ef62e0166081df82019f7c1c0a38 /lib/deprecated/pure | |
parent | f439a2f25f8e2aac2278322aa7ee351390d8161c (diff) | |
download | Nim-bbfe28ec5c4bafa94fc47fecb42449879f8deb85.tar.gz |
make tests green again
Diffstat (limited to 'lib/deprecated/pure')
-rw-r--r-- | lib/deprecated/pure/ftpclient.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/deprecated/pure/ftpclient.nim b/lib/deprecated/pure/ftpclient.nim index 1188c0795..ed2f14450 100644 --- a/lib/deprecated/pure/ftpclient.nim +++ b/lib/deprecated/pure/ftpclient.nim @@ -129,10 +129,10 @@ proc ftpClient*(address: string, port = Port(21), result.csock = socket() if result.csock == invalidSocket: raiseOSError(osLastError()) -template blockingOperation(sock: Socket, body: stmt) {.immediate.} = +template blockingOperation(sock: Socket, body: untyped) = body -template blockingOperation(sock: asyncio.AsyncSocket, body: stmt) {.immediate.} = +template blockingOperation(sock: asyncio.AsyncSocket, body: untyped) = sock.setBlocking(true) body sock.setBlocking(false) |