classification
Title: Write 2to3 fixer for collections.abc imports
Type: enhancement Stage: resolved
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 3.9
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, corona10, hroncok, opoplawski, xtreak
Priority: normal Keywords: patch

Created on 2020-01-29 04:03 by opoplawski, last changed 2020-04-25 08:10 by corona10. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 18245 closed corona10, 2020-01-29 09:25
Messages (2)
msg360936 - (view) Author: Orion Poplawski (opoplawski) Date: 2020-01-29 04:03
fail2ban currently relies on 2to3 for python 3 support.  Build now fails with python 3.9:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fail2ban-0.11.1/bin/fail2ban-testcases", line 61, in <module>
    tests = gatherTests(regexps, opts)
  File "./fail2ban/tests/utils.py", line 373, in gatherTests
    from . import clientreadertestcase
  File "./fail2ban/tests/clientreadertestcase.py", line 34, in <module>
    from ..client.jailreader import JailReader, extractOptions, splitWithOptions
  File "./fail2ban/client/jailreader.py", line 34, in <module>
    from .actionreader import ActionReader
  File "./fail2ban/client/actionreader.py", line 31, in <module>
    from ..server.action import CommandAction
  File "./fail2ban/server/action.py", line 33, in <module>
    from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib64/python3.9/collections/__init__.py)
msg367264 - (view) Author: Dong-hee Na (corona10) * (Python committer) Date: 2020-04-25 08:10
Since https://bugs.python.org/issue40360 is now discussing lib2to3 deprecating.
The feature would not be needed.
History
Date User Action Args
2020-04-25 08:10:29corona10setstatus: open -> closed
resolution: wont fix
messages: + msg367264

stage: patch review -> resolved
2020-01-29 09:25:16corona10setkeywords: + patch
stage: patch review
pull_requests: + pull_request17624
2020-01-29 08:44:34hroncoksetnosy: + hroncok

title: Write 2to3 fixer for MutableMapping -> Write 2to3 fixer for collections.abc imports
2020-01-29 05:43:57corona10setnosy: + corona10
2020-01-29 04:11:01xtreaksetnosy: + benjamin.peterson, xtreak
2020-01-29 04:03:13opoplawskicreate