[issue2112] mmap.error should be a subclass of EnvironmentError and not a direct EnvironmentError

2008-02-17 Thread John Lenton
John Lenton added the comment: Ran the regression test with this patch, all ok (on Ubuntu Gutsy). Attached diff is the same, with the addition of the NEWS entry. -- nosy: +Chipaca Added file: http://bugs.python.org/file9443/mmap3.diff __ Tracker [EMAIL

[issue2112] mmap.error should be a subclass of EnvironmentError and not a direct EnvironmentError

2008-02-17 Thread Facundo Batista
Facundo Batista added the comment: Fixed in r60878. Thanks everybody! -- nosy: +facundobatista resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2112 __

[issue2112] mmap.error should be a subclass of EnvironmentError and not a direct EnvironmentError

2008-02-15 Thread Christian Heimes
Christian Heimes added the comment: Sounds fine with me -- keywords: +easy, patch nosy: +tiran priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2112 __

[issue2112] mmap.error should be a subclass of EnvironmentError and not a direct EnvironmentError

2008-02-14 Thread Thomas Herve
New submission from Thomas Herve: mmap.error in mmapmodule is a direct reference to PyExc_EnvironmentError, whereas it should be a subclass. It makes it provide a specific string representation, and allows to be more specific when catching exceptions. The attached patch tries to provide that.