Fix imports from collections.abc

This commit is contained in:
Raymond Hettinger 2011-02-23 00:46:28 +00:00
parent bd475115c4
commit 57d1a887e7
7 changed files with 22 additions and 20 deletions

View file

@ -4,7 +4,7 @@ import textwrap
import unittest
import functools
import contextlib
import collections
import collections.abc
from test import support
from nntplib import NNTP, GroupInfo, _have_ssl
import nntplib
@ -246,7 +246,7 @@ class NetworkedNNTPTestsMixin:
if not name.startswith('test_'):
continue
meth = getattr(cls, name)
if not isinstance(meth, collections.Callable):
if not isinstance(meth, collections.abc.Callable):
continue
# Need to use a closure so that meth remains bound to its current
# value