Patchwork [05,of,17] cmdutil: remove superfluous pass statements

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

Comments

Augie Fackler - Sept. 30, 2017, 12:02 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1506771806 14400
#      Sat Sep 30 07:43:26 2017 -0400
# Node ID 979cb36af44c9f3104131ba078221eca550874f1
# Parent  6b594a14e15fa86291fadd25f45e280ba7e004a9
cmdutil: remove superfluous pass statements

Patch

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -1735,7 +1735,6 @@  class changeset_printer(object):
     def _exthook(self, ctx):
         '''empty method used by extension as a hook point
         '''
-        pass
 
     def showpatch(self, ctx, matchfn):
         if not matchfn:
@@ -3632,7 +3631,6 @@  def revert(ui, repo, ctx, parents, *pats
 
 def _revertprefetch(repo, ctx, *files):
     """Let extension changing the storage layer prefetch content"""
-    pass
 
 def _performrevert(repo, parents, ctx, actions, interactive=False,
                    tobackup=None):