This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Fixer for dbm is failing
Type: Stage:
Components: 2to3 (2.x to 3.x conversion tool) Versions:
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: collinwinter Nosy List: brett.cannon, collinwinter
Priority: critical Keywords:

Created on 2008-07-11 01:51 by brett.cannon, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg69526 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2008-07-11 01:51
The fixer for dbm to dbm.ndbm fails test_fixers.Test_imports .
msg69527 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2008-07-11 02:21
The failure seems to be from anydbm being mapped directly to dbm:

import anydbm -> import dbm -> import dbm.ndbm

A separate pass might be needed to handle dbm properly so that an import
is not changed multiple times.
msg69531 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2008-07-11 04:11
I have a potential solution brewing; running the full test suite to verify.
msg69533 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2008-07-11 05:57
r64870 has the fix through fix_imports2.
Date User Action Args
2022-04-11 14:56:36adminsetgithub: 47587
2008-07-12 19:55:38brett.cannonunlinkissue2775 dependencies
2008-07-11 05:57:07brett.cannonsetstatus: pending -> closed
resolution: fixed
messages: + msg69533
2008-07-11 04:11:31brett.cannonsetstatus: open -> pending
messages: + msg69531
2008-07-11 02:21:19brett.cannonsetmessages: + msg69527
2008-07-11 01:52:22brett.cannonlinkissue2775 dependencies
2008-07-11 01:51:42brett.cannoncreate