diff mercurial/pure/osutil.py @ 10282:08a0f04b56bd

many, many trivial check-code fixups
author Matt Mackall <mpm@selenic.com>
date Mon, 25 Jan 2010 00:05:27 -0600
parents 25e572394f5c
children 5f091fc1bab7
line wrap: on
line diff
--- a/mercurial/pure/osutil.py	Mon Jan 25 00:05:22 2010 -0600
+++ b/mercurial/pure/osutil.py	Mon Jan 25 00:05:27 2010 -0600
@@ -11,13 +11,20 @@
 posixfile = open
 
 def _mode_to_kind(mode):
-    if _stat.S_ISREG(mode): return _stat.S_IFREG
-    if _stat.S_ISDIR(mode): return _stat.S_IFDIR
-    if _stat.S_ISLNK(mode): return _stat.S_IFLNK
-    if _stat.S_ISBLK(mode): return _stat.S_IFBLK
-    if _stat.S_ISCHR(mode): return _stat.S_IFCHR
-    if _stat.S_ISFIFO(mode): return _stat.S_IFIFO
-    if _stat.S_ISSOCK(mode): return _stat.S_IFSOCK
+    if _stat.S_ISREG(mode):
+        return _stat.S_IFREG
+    if _stat.S_ISDIR(mode):
+        return _stat.S_IFDIR
+    if _stat.S_ISLNK(mode):
+        return _stat.S_IFLNK
+    if _stat.S_ISBLK(mode):
+        return _stat.S_IFBLK
+    if _stat.S_ISCHR(mode):
+        return _stat.S_IFCHR
+    if _stat.S_ISFIFO(mode):
+        return _stat.S_IFIFO
+    if _stat.S_ISSOCK(mode):
+        return _stat.S_IFSOCK
     return mode
 
 def listdir(path, stat=False, skip=None):