From: Elisha Hollander Date: Tue, 13 Jul 2021 13:02:30 +0000 (+0300) Subject: Remove unnecessary pass statements (GH-27103) X-Git-Tag: v3.11.0a1~695 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62d55a4d11fe25e8981e27e68ba080ab47c3f590;p=thirdparty%2FPython%2Fcpython.git Remove unnecessary pass statements (GH-27103) --- diff --git a/Lib/lib2to3/btm_utils.py b/Lib/lib2to3/btm_utils.py index ff76ba340470..b61afdba6930 100644 --- a/Lib/lib2to3/btm_utils.py +++ b/Lib/lib2to3/btm_utils.py @@ -220,7 +220,6 @@ def reduce_tree(node, parent=None): else: #TODO: handle {min, max} repeaters raise NotImplementedError - pass #add children if details_node and new_node is not None: diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py index b981b0e1cb8e..9c7e92faec94 100644 --- a/Lib/multiprocessing/managers.py +++ b/Lib/multiprocessing/managers.py @@ -1337,7 +1337,6 @@ if HAS_SHMEM: def __del__(self): util.debug(f"{self.__class__.__name__}.__del__ by pid {getpid()}") - pass def get_server(self): 'Better than monkeypatching for now; merge into Server ultimately' diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py index 8ce053e881a3..ae88ea594746 100644 --- a/Lib/telnetlib.py +++ b/Lib/telnetlib.py @@ -489,7 +489,6 @@ class Telnet: except EOFError: # raised by self.rawq_getchar() self.iacseq = b'' # Reset on EOF self.sb = 0 - pass self.cookedq = self.cookedq + buf[0] self.sbdataq = self.sbdataq + buf[1]