Modify ↓
Ticket #443 (closed defect: duplicate)
__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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

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.