ee0732a42bdd614baf0e065326f1f6872a041d3a,src/python/pants/backend/core/tasks/markdown_to_html.py,MarkdownToHtml,__init__,#MarkdownToHtml#,213

Before Change


    self._templates_dir = os.path.join("templates", "markdown")
    self.open = self.context.options.markdown_to_html_open

    self.extensions = set(
      self.context.options.markdown_to_html_extensions or
      self.context.config.getlist("markdown-to-html",
                                  "extensions",
                                  default=[".md", ".markdown"])
    )

    self.fragment = self.context.options.markdown_to_html_fragment

    self.code_style = self.context.config.get("markdown-to-html", "code-style", default="friendly")
    if hasattr(self.context.options, "markdown_to_html_code_style"):
      if self.context.options.markdown_to_html_code_style:
        self.code_style = self.context.options.markdown_to_html_code_style

After Change


  def product_types(cls):
    return ["markdown_html", "wiki_html"]

  def __init__(self, *args, **kwargs):
    super(MarkdownToHtml, self).__init__(*args, **kwargs)
    self._templates_dir = os.path.join("templates", "markdown")
    self.open = self.get_options().open
    self.extensions = set(self.get_options().extension)
    self.fragment = self.get_options().fragment
    self.code_style = self.get_options().code_style

  def execute(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: pantsbuild/pants
Commit Name: ee0732a42bdd614baf0e065326f1f6872a041d3a
Time: 2014-11-04
Author: benjyw@gmail.com
File Name: src/python/pants/backend/core/tasks/markdown_to_html.py
Class Name: MarkdownToHtml
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 71200ed5fee471bb32c0d77c3535e2a18fd89377
Time: 2014-10-24
Author: benjyw@gmail.com
File Name: src/python/pants/backend/core/tasks/build_lint.py
Class Name: BuildLint
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: ee0732a42bdd614baf0e065326f1f6872a041d3a
Time: 2014-11-04
Author: benjyw@gmail.com
File Name: src/python/pants/backend/core/tasks/markdown_to_html.py
Class Name: MarkdownToHtml
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 7a8c495c44f49175d381fccfab93c226cde47c9a
Time: 2015-01-29
Author: fedor.korotkov@gmail.com
File Name: src/python/pants/backend/jvm/tasks/ivy_resolve.py
Class Name: IvyResolve
Method Name: confs