[PATCH 16 of 17] posix: replace superfluous pass statement with explicit return
Augie Fackler
raf at durin42.com
Sat Sep 30 08:02:22 EDT 2017
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1506771918 14400
# Sat Sep 30 07:45:18 2017 -0400
# Node ID 8016928028e542909be78f9f0233b5e6cf73cc40
# Parent 050e03d6e79c6465b9f2644facccb340ab1f9b78
posix: replace superfluous pass statement with explicit return
diff --git a/mercurial/posix.py b/mercurial/posix.py
--- a/mercurial/posix.py
+++ b/mercurial/posix.py
@@ -300,7 +300,7 @@ def checklink(path):
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
More information about the Mercurial-devel
mailing list