Modify ↓
Ticket #1105 (closed defect: fixed)
Extraneous '' in Line 113 of base.py Causes Issues
| Reported by: | anonymous | Owned by: | andrew |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0 |
| Component: | commands | Version: | unknown |
| Keywords: | Cc: |
Description
Line 113 (in v1.7.3 at least) of South's base.py is this:
module = import(module_path, {}, {}, [])
The problem with that line of code is explained here:
http://bugs.python.org/issue2090
and (explained better) here:
http://stackoverflow.com/questions/3745221/import-calls-init-py-twice/3745273#3745273
The short version is:
"Using the fromlist=[] hack to import a specific module is explicitly frowned upon by python-dev"
If you simply remove the , everything will continue to work, and you will fix a double-importing problem that hits some users (like myself).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

Gah, formatting ate my post; that's supposed to read:
"The short version is: Using the fromlist *equals list with empty string* hack ...
and:
"If you simply remove the *empty string*, everything will ...