[MERGE] Error messages for test FTP server (Python 2.5 compatibility)
Aaron Bentley
aaron.bentley at utoronto.ca
Wed Apr 18 12:48:22 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alexander Belchenko wrote:
> Attached diff fixes my problems with Ftp tests @ Python 2.5.
It is strange; I tried running the Ftp tests under Python 2.5 and they
worked just fine for me.
@@ -667,6 +667,10 @@
class ftp_channel(medusa.ftp_server.ftp_channel):
"""Customized ftp channel"""
+ ERRORS = {errno.ENOENT: 'No such file or directory',
+ errno.EEXIST: 'File exists',
+ }
os.strerror ought to provide these translations and many more. Have you
tried it?
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGJgWF0F+nu1YWqI0RAlHyAJ0SUogXHQesAs1wVsd/BpmU+NfE/QCeKyjj
LeNZ0C2zmpBllSlXP9am4MY=
=sf+g
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list