collections.Callable -> collections.abc.Callable

"Deprecated since version 3.3, will be removed in version 3.10"
- https://docs.python.org/3/library/collections.html
This commit is contained in:
Rusty Bird 2020-04-07 21:30:54 +00:00
parent a1ddbb054f
commit f9ee7f5816
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -29,7 +29,7 @@
from __future__ import print_function
import argparse
import collections
import collections.abc
import sys
import textwrap
@ -107,7 +107,7 @@ class Column(object):
ret = vm
for attrseg in self._attr.split('.'):
ret = getattr(ret, attrseg)
elif isinstance(self._attr, collections.Callable):
elif isinstance(self._attr, collections.abc.Callable):
ret = self._attr(vm)
except (AttributeError, ZeroDivisionError):