Andrew Svetlov added the comment: Agree with Serhiy. Better to direcly use OSError than IOError alias. ---------- nosy: +asvetlov _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue2118> _______________________________________