From 99c57f8f8dc483576b0ef024f28467b85fe188a3 Mon Sep 17 00:00:00 2001 From: Aliaksei Urbanski Date: Thu, 26 Jan 2017 15:14:43 +0300 Subject: [PATCH] fix raising of DeprecationWarning --- aioredis/pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aioredis/pool.py b/aioredis/pool.py index f66ac19e1..f74cf9c2c 100644 --- a/aioredis/pool.py +++ b/aioredis/pool.py @@ -33,7 +33,7 @@ def create_pool(address, *, db=None, password=None, ssl=None, encoding=None, if commands_factory is not _NOTSET: warnings.warn( "commands_factory argument is deprecated and will be removed!", - warnings.DeprecationWarning) + DeprecationWarning) pool = ConnectionsPool(address, db, password, encoding, minsize=minsize, maxsize=maxsize,