Issue 3337: Fixer for dbm is failing - Python tracker

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.

classification
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.