Merge pull request #5615 from jdufresne/six-u

Remove use of six.u
This commit is contained in:
Takeshi KOMIYA 2018-11-12 11:11:15 +09:00 committed by GitHub
commit 6d8dc3639d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ import re
from collections.abc import Callable from collections.abc import Callable
from functools import partial from functools import partial
from six import string_types, u from six import string_types
from sphinx.ext.napoleon.iterators import modify_iter from sphinx.ext.napoleon.iterators import modify_iter
from sphinx.locale import _ from sphinx.locale import _
@ -189,7 +189,7 @@ class GoogleDocstring(UnicodeMixin):
Unicode version of the docstring. Unicode version of the docstring.
""" """
return u('\n').join(self.lines()) return '\n'.join(self.lines())
def lines(self): def lines(self):
# type: () -> List[unicode] # type: () -> List[unicode]