Skip to content

Commit

Permalink
No need to inherit from object in Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored and adrienverge committed Oct 18, 2022
1 parent 4d271f3 commit 47cd8f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion yamllint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def supports_color():
hasattr(sys.stdout, 'isatty') and sys.stdout.isatty())


class Format(object):
class Format:
@staticmethod
def parsable(problem, filename):
return ('%(file)s:%(line)s:%(column)s: [%(level)s] %(message)s' %
Expand Down
2 changes: 1 addition & 1 deletion yamllint/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
ENABLE_RULE_PATTERN = re.compile(r'^# yamllint enable( rule:\S+)*\s*$')


class LintProblem(object):
class LintProblem:
"""Represents a linting problem found by yamllint."""
def __init__(self, line, column, desc='<no description>', rule=None):
#: Line on which the problem was found (starting at 1)
Expand Down
2 changes: 1 addition & 1 deletion yamllint/rules/key_ordering.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
MAP, SEQ = range(2)


class Parent(object):
class Parent:
def __init__(self, type):
self.type = type
self.keys = []
Expand Down

0 comments on commit 47cd8f2

Please sign in to comment.