summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-09-10 15:36:57 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-09-10 15:36:57 +0900
commit9feebd01d183c0a36100760b4f5bb74a98654c63 (patch)
tree5b859c4bd03f65c9105d320916dd8255d81b775c
parent1d7c82b3bb4127ab48c96c41321608ccfb0241ef (diff)
downloadsphinx-git-9feebd01d183c0a36100760b4f5bb74a98654c63.tar.gz
Use new style python classes
-rw-r--r--sphinx/addnodes.py2
-rw-r--r--sphinx/config.py2
-rw-r--r--sphinx/environment.py2
-rw-r--r--sphinx/ext/autosummary/__init__.py2
-rw-r--r--sphinx/pycode/__init__.py2
-rw-r--r--sphinx/util/pycompat.py2
6 files changed, 6 insertions, 6 deletions
diff --git a/sphinx/addnodes.py b/sphinx/addnodes.py
index c5ce4e296..124c9b6e4 100644
--- a/sphinx/addnodes.py
+++ b/sphinx/addnodes.py
@@ -14,7 +14,7 @@ import warnings
from docutils import nodes
-class translatable:
+class translatable(object):
"""Node which supports translation.
The translation goes forward with following steps:
diff --git a/sphinx/config.py b/sphinx/config.py
index f22d03be6..fdf341268 100644
--- a/sphinx/config.py
+++ b/sphinx/config.py
@@ -34,7 +34,7 @@ CONFIG_TYPE_WARNING = "The config value `{name}' has type `{current.__name__}',
"defaults to `{default.__name__}.'"
-class ENUM:
+class ENUM(object):
"""represents the config value should be a one of candidates.
Example:
diff --git a/sphinx/environment.py b/sphinx/environment.py
index 7947838f4..61df10237 100644
--- a/sphinx/environment.py
+++ b/sphinx/environment.py
@@ -92,7 +92,7 @@ class NoUri(Exception):
pass
-class BuildEnvironment:
+class BuildEnvironment(object):
"""
The environment in which the ReST files are translated.
Stores an inventory of cross-file targets and provides doctree
diff --git a/sphinx/ext/autosummary/__init__.py b/sphinx/ext/autosummary/__init__.py
index 8e784b3fd..030fec301 100644
--- a/sphinx/ext/autosummary/__init__.py
+++ b/sphinx/ext/autosummary/__init__.py
@@ -137,7 +137,7 @@ def autosummary_table_visit_html(self, node):
# -- autodoc integration -------------------------------------------------------
-class FakeDirective:
+class FakeDirective(object):
env = {}
genopt = Options()
diff --git a/sphinx/pycode/__init__.py b/sphinx/pycode/__init__.py
index 3da887d6c..7353eacdc 100644
--- a/sphinx/pycode/__init__.py
+++ b/sphinx/pycode/__init__.py
@@ -33,7 +33,7 @@ pydriver = driver.Driver(pygrammar, convert=nodes.convert)
# an object with attributes corresponding to token and symbol names
-class sym:
+class sym(object):
pass
for k, v in iteritems(pygrammar.symbol2number):
setattr(sym, k, v)
diff --git a/sphinx/util/pycompat.py b/sphinx/util/pycompat.py
index 0f7980e82..6ff5e3567 100644
--- a/sphinx/util/pycompat.py
+++ b/sphinx/util/pycompat.py
@@ -55,7 +55,7 @@ if PY3:
return text_type(tree)
from html import escape as htmlescape # noqa: >= Python 3.2
- class UnicodeMixin:
+ class UnicodeMixin(object):
"""Mixin class to handle defining the proper __str__/__unicode__
methods in Python 2 or 3."""