From e17ee5735bdc828e4bdcd689fcc99e2de2933ff4 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 27 Nov 2023 11:43:02 -0500 Subject: [PATCH] Update for Python 3.8+ --- jaraco/text/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jaraco/text/__init__.py b/jaraco/text/__init__.py index c6ddf6b..0fabd0c 100644 --- a/jaraco/text/__init__.py +++ b/jaraco/text/__init__.py @@ -232,7 +232,7 @@ def unwrap(s): ) -class Splitter(object): +class Splitter: """object that will split a string with the given arguments for each call >>> s = Splitter(',') @@ -369,7 +369,7 @@ def trim(self, item): return self.trim_left(item).trim_right(item) def __getitem__(self, item): - result = super(WordSet, self).__getitem__(item) + result = super().__getitem__(item) if isinstance(item, slice): result = WordSet(result) return result