Skip to content

Commit

Permalink
Fix python deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed May 26, 2018
1 parent 4a3cfb3 commit 31d1138
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aiohttp/pytest_plugin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
import collections
import contextlib
import warnings
from collections.abc import Callable

import pytest

Expand Down Expand Up @@ -292,8 +292,8 @@ def aiohttp_client(loop):

async def go(__param, *args, server_kwargs=None, **kwargs):

if isinstance(__param, collections.Callable) and \
not isinstance(__param, (Application, BaseTestServer)):
if (isinstance(__param, Callable) and
not isinstance(__param, (Application, BaseTestServer))):
__param = __param(loop, *args, **kwargs)
kwargs = {}
else:
Expand Down

0 comments on commit 31d1138

Please sign in to comment.