diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-11 06:48:35 -0700 |
|---|---|---|
| committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-11 07:07:01 -0700 |
| commit | 490e4aed4145659dab000e86269bd7a3dc686318 (patch) | |
| tree | 87b32f22ae1ff41b03877a68bbb8ab4f1c2c9ab7 /sphinx/util/logging.py | |
| parent | 844a3a5c226ff8891a1ce139f10ac92157c75da5 (diff) | |
| download | sphinx-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 'sphinx/util/logging.py')
| -rw-r--r-- | sphinx/util/logging.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py index 9e7c7ec9b..0875a8f5c 100644 --- a/sphinx/util/logging.py +++ b/sphinx/util/logging.py @@ -315,7 +315,7 @@ def skip_warningiserror(skip=True): handler.removeFilter(disabler) -class LogCollector(object): +class LogCollector: def __init__(self): # type: () -> None self.logs = [] # type: List[logging.LogRecord] @@ -495,7 +495,7 @@ class ColorizeFormatter(logging.Formatter): return message -class SafeEncodingWriter(object): +class SafeEncodingWriter: """Stream writer which ignores UnicodeEncodeError silently""" def __init__(self, stream): # type: (IO) -> None @@ -517,7 +517,7 @@ class SafeEncodingWriter(object): self.stream.flush() -class LastMessagesWriter(object): +class LastMessagesWriter: """Stream writer which memories last 10 messages to save trackback""" def __init__(self, app, stream): # type: (Sphinx, IO) -> None |
