From 2bd5093df9cf9e23145da0676eb68f9ec0adfbbc Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 24 Feb 2021 18:19:19 +0100 Subject: [PATCH] Remove strip_first_param argument, it's unused. --- irctest/cases.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/irctest/cases.py b/irctest/cases.py index 6d0a72b..0557c70 100644 --- a/irctest/cases.py +++ b/irctest/cases.py @@ -78,7 +78,6 @@ class _IrcTestCase(unittest.TestCase): nick=None, fail_msg=None, extra_format=(), - strip_first_param=False, **kwargs, ): """Helper for partially comparing a message. @@ -90,8 +89,6 @@ class _IrcTestCase(unittest.TestCase): `subparams`, and `target` are given.""" fail_msg = fail_msg or "{msg}" for (key, value) in kwargs.items(): - if strip_first_param and key == "params": - value = value[1:] self.assertEqual( getattr(msg, key), value, msg, fail_msg, extra_format=extra_format )