diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-11 16:48:35 +0300 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-11 17:07:01 +0300 |
commit | 490e4aed4145659dab000e86269bd7a3dc686318 (patch) | |
tree | 87b32f22ae1ff41b03877a68bbb8ab4f1c2c9ab7 /sphinx/theming.py | |
parent | 844a3a5c226ff8891a1ce139f10ac92157c75da5 (diff) |
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 'sphinx/theming.py')
-rw-r--r-- | sphinx/theming.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/theming.py b/sphinx/theming.py index 938f2ede2..8a389c767 100644 --- a/sphinx/theming.py +++ b/sphinx/theming.py @@ -51,7 +51,7 @@ def extract_zip(filename, targetdir): fp.write(archive.read(name)) -class Theme(object): +class Theme: """A Theme is a set of HTML templates and configurations. This class supports both theme directory and theme archive (zipped theme).""" @@ -159,7 +159,7 @@ def is_archived_theme(filename): return False -class HTMLThemeFactory(object): +class HTMLThemeFactory: """A factory class for HTML Themes.""" def __init__(self, app): |