Fix Callable exception in new versions of Python
Fix the problem below in never versions of Python.
If you can please merge this and do a release. Thanks
File "/usr/local/bin/a2po", line 8, in
I'm just a user who hit the same issue, and I hope this fix will be getting noticed, but: wouldn't it be better to follow a try... except ImportError pattern, as in the import which comes next?
I was trying something like:
try:
# the alias were removed in Python 3.10
# https://github.com/python/cpython/issues/81505
from collections.abc import Callable
except ImportError: # pragma: no cover
from collections import Callable
and then change the reference to collections.Callable to just Callable.
Is there any chance we can get a new release including this fix? The current version is broken otherwise.