[gobject-introspection: 29/30] Fix format/format_inline distinction. - Fix autopep8 errors.



commit 48d348ac822234d898119d8a2118c2bb07145dd1
Author: rockon999 <rockon999 users noreply github com>
Date:   Mon Aug 13 23:56:53 2018 -0500

    Fix format/format_inline distinction.
    - Fix autopep8 errors.

 giscanner/docwriter.py    | 14 +++++++-------
 giscanner/mdextensions.py |  1 -
 2 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index 590fd891..d49446a0 100644
--- a/giscanner/docwriter.py
+++ b/giscanner/docwriter.py
@@ -65,6 +65,7 @@ language_mimes = {
     "yaml": "application/x-yaml",
 }
 
+
 def make_page_id(node, recursive=False):
     if isinstance(node, ast.Namespace):
         if recursive:
@@ -226,7 +227,7 @@ class DocFormatter(object):
 
     def escape(self, text):
         return saxutils.escape(text)
-    
+
     def unescape(self, text):
         return saxutils.unescape(text)
 
@@ -368,7 +369,7 @@ class DocFormatter(object):
     # entirely, implementing the custom markup with Markdown extensions.
     #
     # UPDATE: As a temporary fix for code blocks we will convert directly to ``` syntax.
-    # 
+    #
     # NOTES:
     # _process_markdown_code_toggle:
     #     Whenever we encounter ` we need to toggle whether we are escaping text as text inside
@@ -384,12 +385,12 @@ class DocFormatter(object):
     def _process_markdown_code_toggle(self, node, match, props):
         self._processing_code = not self._processing_code
         return match
-    
+
     def _process_markdown_attr_start(self, node, match, props):
         if not self._processing_code:
             self._processing_attr = True
         return match
-    
+
     def _process_markdown_attr_end(self, node, match, props):
         if not self._processing_code:
             self._processing_attr = False
@@ -398,7 +399,7 @@ class DocFormatter(object):
     def _process_html_code_start(self, node, match, props):
         self._processing_code = True
         return match
-    
+
     def _process_html_code_end(self, node, match, props):
         self._processing_code = False
         return match
@@ -1107,7 +1108,7 @@ class DocFormatterGjs(DocFormatterIntrospectableBase):
 class DevDocsFormatterGjs(DocFormatterGjs):
     output_format = "devdocs"
     output_extension = ".html"
-    
+
     def _is_static_method(self, node):
         if not hasattr(node.parent, "static_methods"):
             return False
@@ -1168,7 +1169,6 @@ class DevDocsFormatterGjs(DocFormatterGjs):
 
         cleaned_up_gtkdoc = super(DevDocsFormatterGjs, self).format_inline(node, doc)
         return markdown.markdown(cleaned_up_gtkdoc, extensions=[
-            InlineMarkdown(),
             'markdown.extensions.fenced_code',
             'markdown.extensions.nl2br',
             'markdown.extensions.attr_list',
diff --git a/giscanner/mdextensions.py b/giscanner/mdextensions.py
index 97be4ed1..16af4fc3 100644
--- a/giscanner/mdextensions.py
+++ b/giscanner/mdextensions.py
@@ -1,6 +1,5 @@
 from markdown.extensions import Extension
 from markdown.treeprocessors import Treeprocessor
-from markdown.util import etree
 
 
 class RemoveOuterP(Treeprocessor):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]