Skip to content

Commit

Permalink
Update for Python 3.8+
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 27, 2023
1 parent bd5c697 commit e17ee57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jaraco/text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(',')
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e17ee57

Please sign in to comment.