diff mercurial/win32.py @ 12387:4f8067c94729

cleanup: use x in (a, b) instead of x == a or x == b
author Brodie Rao <brodie@bitheap.org>
date Thu, 23 Sep 2010 00:02:31 -0500
parents ccd8e592c3c5
children 4cdaf1adafc8
line wrap: on
line diff
--- a/mercurial/win32.py	Thu Sep 23 10:59:21 2010 +0200
+++ b/mercurial/win32.py	Thu Sep 23 00:02:31 2010 -0500
@@ -50,7 +50,7 @@
         if not dirname:
             dirname = '.'
         dt = win32file.GetDriveType(dirname + '\\')
-        if dt == 4 or dt == 1:
+        if dt in (4, 1):
             # Fake hardlink to force COW for network drives
             links = 2
     return links