summaryrefslogtreecommitdiff
path: root/sphinx/ext/apidoc.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-09-23 15:11:35 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2018-11-11 19:09:47 -0800
commit27a6787d63d5df87f8216713ec4377e4e2f57b99 (patch)
tree4f2bafd761653f539b10ec6356ebb940d7c9b435 /sphinx/ext/apidoc.py
parent7ff3d1875abb4e73065242c0035125d759087041 (diff)
downloadsphinx-git-27a6787d63d5df87f8216713ec4377e4e2f57b99.tar.gz
Remove use of six.binary_type
Remove type checks for cases that don't apply to Python 3. For remaining uses, use bytes instead
Diffstat (limited to 'sphinx/ext/apidoc.py')
-rw-r--r--sphinx/ext/apidoc.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/sphinx/ext/apidoc.py b/sphinx/ext/apidoc.py
index 31cdb5855..36073298f 100644
--- a/sphinx/ext/apidoc.py
+++ b/sphinx/ext/apidoc.py
@@ -25,8 +25,6 @@ import sys
from fnmatch import fnmatch
from os import path
-from six import binary_type
-
import sphinx.locale
from sphinx import __display_version__, package_dir
from sphinx.cmd.quickstart import EXTENSIONS
@@ -444,15 +442,6 @@ def main(argv=sys.argv[1:]):
if args.extensions:
d['extensions'].extend(args.extensions)
- if isinstance(args.header, binary_type):
- d['project'] = d['project'].decode('utf-8')
- if isinstance(args.author, binary_type):
- d['author'] = d['author'].decode('utf-8')
- if isinstance(args.version, binary_type):
- d['version'] = d['version'].decode('utf-8')
- if isinstance(args.release, binary_type):
- d['release'] = d['release'].decode('utf-8')
-
if not args.dryrun:
qs.generate(d, silent=True, overwrite=args.force)
elif args.tocfile: