mercurial/util.py
changeset 6835 08d9e0f974d9
parent 6339 ed9b07a97587
child 6836 c016dc1a8e91
child 6877 1d38f3605b20
--- a/mercurial/util.py	Sun Jul 20 21:00:13 2008 +0200
+++ b/mercurial/util.py	Wed Jul 23 16:08:20 2008 +0200
@@ -1427,7 +1427,7 @@
             mode += "b" # for that other OS
 
         nlink = -1
-        if mode[0] != "r":
+        if mode not in ("r", "rb"):
             try:
                 nlink = nlinks(f)
             except OSError: