0

unused import statement ... is wrong?

Sometimes PyCharm 3.0.1 marks an import statement (like 'import os') as unused, but if I comment it out, the program doesn't run, saying 'NameError: name 'os' is not defined'.

What might be happening?

2 comments

Please sign in to leave a comment.