Thanks for making those changes, not all the suggestions I made were completely correct so I hope you don't mind poking some of the minor details again.
So, I said 'msg' wasn't a great name, but annoyingly 'message' is worse due to some legacy Python exception stuff. How about 'description' or something?
Also, having english text as a param prevents that part from being translated, but this isn't too important.
Including the path, and just using the operation name rather than the text form would work for everything but the symlink/rename case, which could just be an optional target_path param to the exception.
+ self.assertEquals(e.message, "\nunable to symlink")
\ No newline at end of file
As with the other mp, this needs a terminal newline or bt.test_source fails.
Thanks for making those changes, not all the suggestions I made were completely correct so I hope you don't mind poking some of the minor details again.
Style nit, two lines between top level things in modules, see: www.python. org/dev/ peps/pep- 0008/#blank- lines>
<http://
+ self.message = "\n" + message
So, I said 'msg' wasn't a great name, but annoyingly 'message' is worse due to some legacy Python exception stuff. How about 'description' or something?
Also, having english text as a param prevents that part from being translated, but this isn't too important.
Including the path, and just using the operation name rather than the text form would work for everything but the symlink/rename case, which could just be an optional target_path param to the exception.
+ self.assertEqua ls(e.message, "\nunable to symlink")
\ No newline at end of file
As with the other mp, this needs a terminal newline or bt.test_source fails.
+ @staticmethod io_exception( e, path, more_info='', _error( e, path, raise_generic= False) _translate_ error(e, path, raise_generic= False)
+ def _translate_
...
- self._translate
+ Transport.
The neat way around needing the Transport import for this is to instead do:
@classmethod io_exception( cls, e, path, more_info='',
cls._translate _error( e, path, raise_generic= False)
def _translate_
...
Leaving _translate_error as @staticerror is fine.
+ # raise errors. TransportNotPos sible(more_ info)
Just delete this.