diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-15 20:05:33 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-15 20:05:33 +0900 |
commit | b911a39a813d8f7225ccd870e20ae88a0310ec15 (patch) | |
tree | f58995dacc695630542e648892c1595c3888f20b /sphinx/util/jsdump.py | |
parent | aaf0046f441aab454c64c792291dd87867fd0699 (diff) | |
download | sphinx-git-b911a39a813d8f7225ccd870e20ae88a0310ec15.tar.gz |
refactor: Replace six.integer_types by int
Diffstat (limited to 'sphinx/util/jsdump.py')
-rw-r--r-- | sphinx/util/jsdump.py | 4 |
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' % ( |