Nathan Jones - 2010-09-19

I also see this when a type is conditionally imported in an if-else block. For example:

import sys
if sys.platform == 'win32':
from platform import Windows as Platform
else:
from platform import Linux as Platform

print Platform().home_dir

Both imports in the if-else block have warnings. The first warning says "Unused import: Platform", the second says "Import redefinition: Platform".