Patchwork [06,of,17] commandserver: remove superfluous pass statements

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

Comments

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

Patch

diff --git a/mercurial/commandserver.py b/mercurial/commandserver.py
--- a/mercurial/commandserver.py
+++ b/mercurial/commandserver.py
@@ -184,7 +184,6 @@  class server(object):
 
     def cleanup(self):
         """release and restore resources taken during server session"""
-        pass
 
     def _read(self, size):
         if not size:
@@ -422,7 +421,6 @@  class unixservicehandler(object):
 
     def newconnection(self):
         """Called when main process notices new connection"""
-        pass
 
     def createcmdserver(self, repo, conn, fin, fout):
         """Create new command server instance; called in the process that