Skip to content

Commit 58367bc

Browse files
authored
Merge pull request #36 from Chilipp/remove-six
Remove six
2 parents cac91e8 + b919d26 commit 58367bc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

autodocsumm/__init__.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from sphinx.util import logging
1313
import re
14-
import six
1514

1615
from docutils import nodes
1716

@@ -52,9 +51,6 @@
5251
except ImportError:
5352
from ordereddict import OrderedDict
5453

55-
if six.PY2:
56-
from itertools import imap as map
57-
5854
__version__ = '0.2.1'
5955

6056
__author__ = "Philipp S. Sommer"
@@ -188,7 +184,7 @@ def get_grouped_documenters(self, all_members=False):
188184
registry = get_documenters(self.env.app)
189185

190186
for (mname, member, isattr) in self.filter_members(members, want_all):
191-
classes = [cls for cls in six.itervalues(registry)
187+
classes = [cls for cls in registry.values()
192188
if cls.can_document_member(member, mname, isattr, self)]
193189
if not classes:
194190
# don't know how to document this member
@@ -372,7 +368,7 @@ def get_doc(self, encoding=None, ignore=1):
372368

373369
doc = []
374370
for docstring in docstrings:
375-
if not isinstance(docstring, six.text_type):
371+
if not isinstance(docstring, str):
376372
docstring = force_decode(docstring, encoding)
377373
doc.append(prepare_docstring(docstring, ignore))
378374

@@ -416,7 +412,7 @@ def get_doc(self, encoding=None, ignore=1):
416412

417413
doc = []
418414
for docstring in docstrings:
419-
if not isinstance(docstring, six.text_type):
415+
if not isinstance(docstring, str):
420416
docstring = force_decode(docstring, encoding)
421417
doc.append(prepare_docstring(docstring, ignore))
422418

0 commit comments

Comments
 (0)