Patchwork [08,of,17] formatter: remove superfluous pass statements

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

Comments

Augie Fackler - Sept. 30, 2017, 12:02 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1506771848 14400
#      Sat Sep 30 07:44:08 2017 -0400
# Node ID 261a764fc0d8d6315208be36c716c0a1e917cf40
# Parent  733439ef2461439f4c3e16f51777e7266868dfff
formatter: remove superfluous pass statements

Patch

diff --git a/mercurial/formatter.py b/mercurial/formatter.py
--- a/mercurial/formatter.py
+++ b/mercurial/formatter.py
@@ -167,7 +167,6 @@  class baseformatter(object):
             self.end()
     def _showitem(self):
         '''show a formatted item once all data is collected'''
-        pass
     def startitem(self):
         '''begin an item in the format list'''
         if self._item is not None:
@@ -206,7 +205,6 @@  class baseformatter(object):
         self._item.update(zip(fieldkeys, fielddata))
     def plain(self, text, **opts):
         '''show raw text for non-templated mode'''
-        pass
     def isplain(self):
         '''check for plain formatter usage'''
         return False