Your message dated Wed, 26 Jan 2022 10:53:09 +0100
with message-id <[email protected]>
and subject line Bug can be closed
has caused the Debian Bug report #960548,
regarding python3-pyparsing: DeprecationWarning in collections import (will be
failure with python3.9)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
960548: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960548
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-pyparsing
Version: 2.4.7-1
Severity: normal
Currently there is just a warning, but once we switch to python3.9 the
following line will fail:
from collections import MutableMapping, Mapping
This is already fixed upstream [1]. It's an easy enough fix (probably
much easier than jumping to pyparsing 3.0), so we ought to go ahead and
do it. Note that the upstream fix may not be compatible with the pypy
package, so we may want something slightly different, similar to [2].
Scott K
[1] https://github.com/pyparsing/pyparsing/blob/master/pyparsing_archive.py#L109
[2] https://patch-diff.githubusercontent.com/raw/mozilla/bleach/pull/533.diff
--- End Message ---
--- Begin Message ---
Hi,
Looking at upstream code, we have:
try:
# Python 3
from collections.abc import Iterable
from collections.abc import MutableMapping, Mapping
except ImportError:
# Python 2.7
from collections import Iterable
from collections import MutableMapping, Mapping
which is just fine... So this bug can be closed.
Thomas Goirand (zigo)
--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team