diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-16 00:32:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-16 00:32:10 +0900 |
commit | c70e65fc6cd04d02df4f7911025f534dbd27cc20 (patch) | |
tree | 1e8614ac5516dace99ef1df4d203081662c7c2d6 /sphinx/versioning.py | |
parent | d6d4406ce987cc8823d1b3a33be3a418bcd2a59d (diff) | |
parent | 79eec90f36f5a74e24cfd6740126396fd6567e07 (diff) | |
download | sphinx-git-c70e65fc6cd04d02df4f7911025f534dbd27cc20.tar.gz |
Merge branch 'master' into 5770_doctest_refers_highlight_language
Diffstat (limited to 'sphinx/versioning.py')
-rw-r--r-- | sphinx/versioning.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sphinx/versioning.py b/sphinx/versioning.py index 409dc5e3a..2c6569932 100644 --- a/sphinx/versioning.py +++ b/sphinx/versioning.py @@ -11,13 +11,11 @@ """ import pickle import warnings -from itertools import product +from itertools import product, zip_longest from operator import itemgetter from os import path from uuid import uuid4 -from six.moves import zip_longest - from sphinx.deprecation import RemovedInSphinx30Warning from sphinx.transforms import SphinxTransform @@ -25,7 +23,6 @@ if False: # For type annotation from typing import Any, Iterator # NOQA from docutils import nodes # NOQA - from sphinx.util.typing import unicode # NOQA try: import Levenshtein @@ -122,7 +119,7 @@ def merge_doctrees(old, new, condition): def get_ratio(old, new): - # type: (unicode, unicode) -> float + # type: (str, str) -> float """Return a "similiarity ratio" (in percent) representing the similarity between the two strings where 0 is equal and anything above less than equal. """ @@ -136,7 +133,7 @@ def get_ratio(old, new): def levenshtein_distance(a, b): - # type: (unicode, unicode) -> int + # type: (str, str) -> int """Return the Levenshtein edit distance between two strings *a* and *b*.""" if a == b: return 0 |