131c131
< raise TypeError
---
> raise TypeError()
197c197
< except Exception, e:
---
> except Exception as e:
209c209
< raise AttributeError, "%s exists but is not directory" % path
---
> raise AttributeError("%s exists but is not directory" % path)