1 --- python-slip-0.6.5/slip/dbus/polkit.py.orig 2017-05-16 12:14:36.000000000 +0200
2 +++ python-slip-0.6.5/slip/dbus/polkit.py 2021-07-03 19:34:39.676622157 +0200
5 from __future__ import absolute_import
8 +from six.moves import collections_abc
10 from decorator import decorator
11 from functools import reduce
13 def some_method(self, ...):
16 - assert(func is None or isinstance(func, collections.Callable))
17 + assert(func is None or isinstance(func, collections_abc.Callable))
20 authfail_result in (None, AUTHFAIL_DONTCATCH) or
21 authfail_exception is None)
23 authfail_callback is None or
24 - isinstance(authfail_callback, collections.Callable))
25 + isinstance(authfail_callback, collections_abc.Callable))
27 authfail_exception is None or
28 issubclass(authfail_exception, Exception))
29 --- python-slip-0.6.5/slip/util/hookable.py.orig 2017-05-16 12:14:36.000000000 +0200
30 +++ python-slip-0.6.5/slip/util/hookable.py 2021-07-03 19:35:20.166402805 +0200
32 """This module contains variants of certain base types which call registered
36 +from six.moves import collections_abc
37 from six import with_metaclass
39 __all__ = ["Hookable", "HookableSet"]
42 def __init__(self, hook, args, kwargs, hookable=None):
44 - assert(isinstance(hook, collections.Callable))
45 + assert(isinstance(hook, collections_abc.Callable))
46 assert(isinstance(hookable, Hookable))
48 for n, x in enumerate(args):
50 self.__add_hook(hook, self, *args, **kwargs)
52 def __add_hook(self, hook, _hookable, *args, **kwargs):
53 - assert isinstance(hook, collections.Callable)
54 + assert isinstance(hook, collections_abc.Callable)
55 assert isinstance(_hookable, Hookable)
56 hookentry = _HookEntry(hook, args, kwargs, hookable=_hookable)
57 self.__hooks__.add(hookentry)