summaryrefslogtreecommitdiff
path: root/tests/test_domain_cpp.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-09-11 06:48:35 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2018-09-11 07:07:01 -0700
commit490e4aed4145659dab000e86269bd7a3dc686318 (patch)
tree87b32f22ae1ff41b03877a68bbb8ab4f1c2c9ab7 /tests/test_domain_cpp.py
parent844a3a5c226ff8891a1ce139f10ac92157c75da5 (diff)
downloadsphinx-git-490e4aed4145659dab000e86269bd7a3dc686318.tar.gz
Remove unnecessary object from class definitions
In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
Diffstat (limited to 'tests/test_domain_cpp.py')
-rw-r--r--tests/test_domain_cpp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py
index b8856824b..a68cb008c 100644
--- a/tests/test_domain_cpp.py
+++ b/tests/test_domain_cpp.py
@@ -22,7 +22,7 @@ from sphinx.domains.cpp import Symbol, _max_id, _id_prefix
def parse(name, string):
- class Config(object):
+ class Config:
cpp_id_attributes = ["id_attr"]
cpp_paren_attributes = ["paren_attr"]
parser = DefinitionParser(string, None, Config())
@@ -804,7 +804,7 @@ not found in `{test}`
assert result, expect
return set(result.group('classes').split())
- class RoleClasses(object):
+ class RoleClasses:
"""Collect the classes from the layout that was generated for a given role."""
def __init__(self, role, root, contents):