mercurial/posix.py
branchstable
changeset 13007 e98bf6948092
parent 12689 c52c629ce19e
child 13280 6052bbc7aabd
--- a/mercurial/posix.py	Tue Nov 16 21:35:58 2010 +0100
+++ b/mercurial/posix.py	Tue Nov 16 21:35:58 2010 +0100
@@ -144,7 +144,7 @@
         try:
             fd = os.open(path, O_SYMLINK)
         except OSError, err:
-            if err.errno is errno.ENOENT:
+            if err.errno == errno.ENOENT:
                 return path
             raise