Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b68a5f3

Browse files
authored
Merge pull request astropy#126 from pllim/mnt-20210402
MNT: Code clean-up
2 parents f66e582 + fb3060d commit b68a5f3

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ classifiers =
1111
Development Status :: 3 - Alpha
1212
Intended Audience :: Developers
1313
Programming Language :: Python
14-
Programming Language :: Python :: 2
1514
Programming Language :: Python :: 3
1615
Operating System :: OS Independent
1716
License :: OSI Approved :: BSD License

sphinx_automodapi/autodoc_enhancements.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
"""
22
Miscellaneous enhancements to help autodoc along.
33
"""
4-
5-
import inspect
6-
import sys
7-
import types
8-
9-
from sphinx.ext.autodoc import AttributeDocumenter, ModuleDocumenter
10-
from sphinx.util.inspect import isdescriptor
4+
from sphinx.ext.autodoc import AttributeDocumenter
115

126
__all__ = []
137

14-
if sys.version_info[0] == 3:
15-
class_types = (type,)
16-
else:
17-
class_types = (type, types.ClassType)
18-
8+
class_types = (type,)
199
MethodDescriptorType = type(type.__subclasses__)
2010

2111

0 commit comments

Comments
 (0)