Skip to content

Commit 92bc32e

Browse files
committed
Remove useless object inheritance
1 parent 1aa08e2 commit 92bc32e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ flake8:
2828
flake8 . --count --exit-zero --max-complexity=10 --statistics
2929

3030
pylint:
31-
pylint --disable=W0511,R0205 msgcheck
32-
pylint --disable=W0511,R0205 tests
31+
pylint --disable=W0511 msgcheck
32+
pylint --disable=W0511 tests
3333

3434
bandit:
3535
bandit -r msgcheck

msgcheck/po.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_concatenated_files(filenames):
5151
return '\n'.join(content)
5252

5353

54-
class PoReport(object): # pylint: disable=too-few-public-methods
54+
class PoReport: # pylint: disable=too-few-public-methods
5555
"""A message in report (commonly an error in detected in gettext file)."""
5656

5757
# pylint: disable=too-many-arguments
@@ -87,7 +87,7 @@ def get_misspelled_words(self):
8787
return self.message if isinstance(self.message, list) else []
8888

8989

90-
class PoMessage(object):
90+
class PoMessage:
9191
"""
9292
A message from a gettext file. It is stored as a list of tuples
9393
(string, translation).
@@ -332,7 +332,7 @@ def check_spelling(self, spelling, checkers):
332332
return errors
333333

334334

335-
class Checker(object): # pylint: disable=too-many-instance-attributes
335+
class Checker: # pylint: disable=too-many-instance-attributes
336336
"""Messages checker."""
337337

338338
def __init__(self):
@@ -404,7 +404,7 @@ def last_check(self):
404404
return None
405405

406406

407-
class PoFile(object):
407+
class PoFile:
408408
"""
409409
A gettext file. It includes methods to read the file, and perform
410410
checks on the translations.
@@ -469,7 +469,7 @@ def compile(self):
469469
return (output, 0)
470470

471471

472-
class PoCheck(object):
472+
class PoCheck:
473473
"""Perform checks on a gettext file."""
474474

475475
def __init__(self):

0 commit comments

Comments
 (0)