I wrote: > except IOError: > if e.errno != errno.ENOENT: raise # if you are picky
Argh, I meant "except IOError, e:". That's for Python 2 but not Python 3. "except IOError as e:" works on Python 2.6 and above. -- Hallvard -- http://mail.python.org/mailman/listinfo/python-list