##// END OF EJS Templates
inotify: on Python < 2.6, socket.error lacks errno
Bryan O'Sullivan -
r18107:c60d09dc default
parent child Browse files
Show More
@@ -334,7 +334,7 b' class socketlistener(object):'
334 lambda p: os.path.join(root, '.hg', p),
334 lambda p: os.path.join(root, '.hg', p),
335 'inotify')
335 'inotify')
336 except (OSError, socket.error), err:
336 except (OSError, socket.error), err:
337 if err.errno == errno.EADDRINUSE:
337 if err.args[0] == errno.EADDRINUSE:
338 raise AlreadyStartedException(_('cannot start: '
338 raise AlreadyStartedException(_('cannot start: '
339 'socket is already bound'))
339 'socket is already bound'))
340 raise
340 raise
General Comments 0
You need to be logged in to leave comments. Login now