mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
inotify: on Python < 2.6, socket.error lacks errno
This commit is contained in:
parent
fa2bc9d633
commit
bac2c7da41
@ -334,7 +334,7 @@ class socketlistener(object):
|
||||
lambda p: os.path.join(root, '.hg', p),
|
||||
'inotify')
|
||||
except (OSError, socket.error), err:
|
||||
if err.errno == errno.EADDRINUSE:
|
||||
if err.args[0] == errno.EADDRINUSE:
|
||||
raise AlreadyStartedException(_('cannot start: '
|
||||
'socket is already bound'))
|
||||
raise
|
||||
|
Loading…
Reference in New Issue
Block a user