posix: replace superfluous pass statement with explicit return
authorAugie Fackler <augie@google.com>
Sat, 30 Sep 2017 07:45:18 -0400
changeset 39910 ab687e06fe022784643064c163fbf2038961c7ce
parent 39909 719a5c17e1311e4bf384bc5a475f5565ec8e3d3c
child 39911 b52f22d9afa5a8abd4acd6aa27f8c2e413d087c1
push id572
push usergszorc@mozilla.com
push dateSun, 01 Oct 2017 23:04:34 +0000
posix: replace superfluous pass statement with explicit return
mercurial/posix.py
--- a/mercurial/posix.py
+++ b/mercurial/posix.py
@@ -295,17 +295,17 @@ def checklink(path):
             # sshfs might report failure while successfully creating the link
             if inst[0] == errno.EIO and os.path.exists(name):
                 unlink(name)
             return False
 
 def checkosfilename(path):
     '''Check that the base-relative path is a valid filename on this platform.
     Returns None if the path is ok, or a UI string describing the problem.'''
-    pass # on posix platforms, every path is ok
+    return None # on posix platforms, every path is ok
 
 def setbinary(fd):
     pass
 
 def pconvert(path):
     return path
 
 def localpath(path):