summaryrefslogtreecommitdiff
path: root/sphinx/deprecation.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-03-17 12:49:36 -0700
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-03-19 01:09:48 +0900
commit22afc77c488e85ccd51303a223f450705b30217b (patch)
treeff1d15cd398cc399ff667befc3af59d82d45a9db /sphinx/deprecation.py
parent33ba281e0a45467bace85229180c0673eaa98415 (diff)
downloadsphinx-git-22afc77c488e85ccd51303a223f450705b30217b.tar.gz
Python-3-only clean ups discovered by pyupgrade
https://github.com/asottile/pyupgrade > A tool to automatically upgrade syntax for newer versions of the > language. - Drop u str prefix - Drop base object inheritance - Drop args to super() - Use set literals - Use dict comprehension - Use set comprehension
Diffstat (limited to 'sphinx/deprecation.py')
-rw-r--r--sphinx/deprecation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/deprecation.py b/sphinx/deprecation.py
index e10ec8b32..6cdd22ec1 100644
--- a/sphinx/deprecation.py
+++ b/sphinx/deprecation.py
@@ -37,7 +37,7 @@ def deprecated_alias(modname, objects, warning):
sys.modules[modname] = _ModuleWrapper(module, modname, objects, warning) # type: ignore
-class _ModuleWrapper(object):
+class _ModuleWrapper:
def __init__(self, module, modname, objects, warning):
# type: (Any, str, Dict, Type[Warning]) -> None
self._module = module