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:
parent
a1ddbb054f
commit
f9ee7f5816
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user