Ticket #443 (closed defect: duplicate)

Opened 4 years ago

Last modified 4 years ago

__import__

Reported by: t.kunert@… Owned by: andrew
Priority: minor Milestone: 0.7.1
Component: commands Version: 0.7
Keywords: Cc:

Description

This code from south/utils.py is wrong:

module = import(modulename, {}, {}, bits[-1])

The fourth argument of import is supposed to be a list, or empty. So with the current code, the string bits[-1] gets turned into a list of letters, which are imported. I suggest to change this into

module = import(modulename)

Thomas.

Change History

comment:1 Changed 4 years ago by andrew

  • Status changed from new to closed
  • Resolution set to duplicate
  • Milestone set to 0.7.1

It is wrong in principle, but due to the way import is implemented works fine anyway. This will be solved by #426, so marking this as duplicate.

Note: See TracTickets for help on using tickets.