If two modules with common prefix are imported, they are marked as double import.
This code works:
import xml.dom # marked - "Unused import: xml"
import xml.sax # marked - "Import redifinition: xml"
Logged In: YES
Actually, that's correctly marked considering how python works: when you do: import xml.dom, you'll have both: 'xml' and 'xml.dom' in your namespace. In that case that appears strange, but if you did:
from my_project import xml
It would be more clear that there could be something wrong (because the 'xml' token available would be the one from 'import xml.dom' and not the one obtained in 'from my_project import xml')