Patchwork [16,of,17] posix: replace superfluous pass statement with explicit return

login
register
mail settings
Submitter Augie Fackler
Date Sept. 30, 2017, 12:02 p.m.
Message ID <8016928028e542909be7.1506772942@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/24249/
State Accepted
Headers show

Comments

Augie Fackler - Sept. 30, 2017, 12:02 p.m.
# HG changeset patch
# User Augie Fackler <augie@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

Patch

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