Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove explicit base object inheritance #185

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading