Package: pythonpy
Version: 0.4.11b-3
Severity: normal

Dear Maintainer,

In python 3.10[1] deprecated aliases to Collections Abstract Base
Classes from the collections module have been removed. These imports
must be done from collections.abc.

This patch was provided by Daniel Franklin in a Launchpad bug comment[2]:
--- a/pythonpy/__main__.py
+++ b/pythonpy/__main__.py
@@ -13,7 +13,7 @@ signal(SIGPIPE,SIG_DFL)
 import argparse
 import json
 import re
-from collections import Iterable
+from collections.abc import Iterable

 try:
     from . import __version__


1. https://docs.python.org/3/whatsnew/3.10.html
2. https://bugs.launchpad.net/ubuntu/+source/pythonpy/+bug/1878935/comments/1

Reply via email to