Skip to content

Commit

Permalink
Remove explicit base object inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
blablatdinov committed Jun 27, 2024
1 parent 334db14 commit ccf0b95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def extract_format(format, extra_types):
PARSE_RE = re.compile(r"({{|}}|{[\w-]*(?:\.[\w-]+|\[[^]]+])*(?::[^}]+)?})")


class Parser(object):
class Parser:
"""Encapsulate a format string that may be used to parse other strings."""

def __init__(self, format, extra_types=None, case_sensitive=False):
Expand Down Expand Up @@ -855,7 +855,7 @@ def _handle_field(self, field):
return s


class Result(object):
class Result:
"""The result of a parse() or search().
Fixed results may be looked up using `result[index]`.
Expand Down Expand Up @@ -883,7 +883,7 @@ def __contains__(self, name):
return name in self.named


class Match(object):
class Match:
"""The result of a parse() or search() if no results are generated.
This class is only used to expose internal used regex match objects
Expand All @@ -899,7 +899,7 @@ def evaluate_result(self):
return self.parser.evaluate_result(self.match)


class ResultIterator(object):
class ResultIterator:
"""The result of a findall() operation.
Each element is a Result instance.
Expand Down

0 comments on commit ccf0b95

Please sign in to comment.