=== modified file 'mandos' --- mandos 2020-02-05 20:32:33 +0000 +++ mandos 2020-02-06 15:56:51 +0000 @@ -94,6 +94,15 @@ __metaclass__ = type str = unicode +# Add collections.abc.Callable if it does not exist +try: + collections.abc.Callable +except AttributeError: + class abc: + Callable = collections.Callable + collections.abc = abc + del abc + # Show warnings by default if not sys.warnoptions: import warnings @@ -2748,7 +2757,7 @@ if command == 'getattr': attrname = request[1] if isinstance(client_object.__getattribute__(attrname), - collections.Callable): + collections.abc.Callable): parent_pipe.send(('function', )) else: parent_pipe.send((