File: remove_six.patch

package info (click to toggle)
cdist 7.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,992 kB
  • sloc: sh: 16,815; python: 9,199; makefile: 344; awk: 261
file content (19 lines) | stat: -rw-r--r-- 659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/cdist/sphinxext/manpage.py
+++ b/cdist/sphinxext/manpage.py
@@ -2,7 +2,6 @@
 import sphinx.writers.manpage
 from docutils.frontend import OptionParser
 from sphinx.util.console import bold, darkgreen
-from six import string_types
 from docutils.io import FileOutput
 from os import path
 from sphinx.util.nodes import inline_all_toctrees
@@ -51,7 +50,7 @@
 
         for info in self.config.man_pages:
             docname, name, description, authors, section = info
-            if isinstance(authors, string_types):
+            if isinstance(authors, str):
                 if authors:
                     authors = [authors]
                 else: