Issue 3337: Fixer for dbm is failing (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/47587

classification

Title: Fixer for dbm is failing
Type: Stage:
Components: 2to3 (2.x to 3.x conversion tool) Versions:

process

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.
History
Date User Action Args
2022-04-11 14:56:36 admin set github: 47587
2008-07-12 19:55:38 brett.cannon unlink issue2775 dependencies
2008-07-11 05:57:07 brett.cannon set status: pending -> closedresolution: fixedmessages: +
2008-07-11 04:11:31 brett.cannon set status: open -> pendingmessages: +
2008-07-11 02:21:19 brett.cannon set messages: +
2008-07-11 01:52:22 brett.cannon link issue2775 dependencies
2008-07-11 01:51:42 brett.cannon create