summaryrefslogtreecommitdiff
path: root/sphinx/util/jsdump.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-15 20:05:33 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-15 20:05:33 +0900
commitb911a39a813d8f7225ccd870e20ae88a0310ec15 (patch)
treef58995dacc695630542e648892c1595c3888f20b /sphinx/util/jsdump.py
parentaaf0046f441aab454c64c792291dd87867fd0699 (diff)
downloadsphinx-git-b911a39a813d8f7225ccd870e20ae88a0310ec15.tar.gz
refactor: Replace six.integer_types by int
Diffstat (limited to 'sphinx/util/jsdump.py')
-rw-r--r--sphinx/util/jsdump.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sphinx/util/jsdump.py b/sphinx/util/jsdump.py
index 39ed3ea6b..6502f2408 100644
--- a/sphinx/util/jsdump.py
+++ b/sphinx/util/jsdump.py
@@ -12,8 +12,6 @@
import re
-from six import integer_types
-
if False:
# For type annotation
from typing import Any, Dict, IO, List, Match, Union # NOQA
@@ -95,7 +93,7 @@ def dumps(obj, key=False):
return 'null'
elif obj is True or obj is False:
return obj and 'true' or 'false'
- elif isinstance(obj, integer_types + (float,)): # type: ignore
+ elif isinstance(obj, (int, float)):
return str(obj)
elif isinstance(obj, dict):
return '{%s}' % ','.join(sorted('%s:%s' % (