Mistaken "Error: redfefintion of unused <something>" with alternative imports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scribes |
New
|
Undecided
|
Unassigned |
Bug Description
When I created (these days rather standard) construct
if sys.version_
import unittest2 as unittest
else:
import unittest
or
try:
import unittest2 as unittest
else:
import unittest
Scribes complain that "Error: redefinition of unused 'unittest' from line 8 on line 10".
-------
matej@wycliff: ~$ scribes -i
=======
System Info: ('Linux', 'wycliff.
Python Version: 2.7.3 (default, Aug 10 2012, 02:54:27)
[GCC 4.7.1 20120720 (Red Hat 4.7.1-5)]
System Byteorder: little
Python Modules: ('__builtin__', '__main__', '_ast', '_codecs', '_sre', '_symtable', '_warnings', '_weakref', 'errno', 'exceptions', 'gc', 'imp', 'marshal', 'posix', 'pwd', 'signal', 'sys', 'thread', 'zipimport')
=======
Scribes Version: 0.4-dev-build1052
Dbus Version: (1, 1, 1)
matej@wycliff: ~$ GTK+ Version: (2, 24, 13)
PyGTK Version: (2, 24, 0)
Psyco Not Installed
=======
Running Instance: 1
=======
Python Path: /usr/lib/
Plugin Path: /usr/lib64/
Data Path: /usr/share/scribes
Executable Path: /usr/bin
=======
matej@wycliff: ~$