Skip to content

Commit

Permalink
Merge pull request #90 from cs50/develop
Browse files Browse the repository at this point in the history
v2.7.2
  • Loading branch information
Kareem Zidane authored Aug 14, 2019
2 parents fe2349f + 6752273 commit 058c3bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"console_scripts": ["style50=style50.__main__:main"],
},
url="https://github.com/cs50/style50",
version="2.7.1",
version="2.7.2",
include_package_data=True,
)
3 changes: 2 additions & 1 deletion style50/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ def run(self, *args, **kwargs):
results = self.check(*args, **kwargs)

if self.output == "html":
html = renderer.to_html(**results)
with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".html") as html_file:
html_file.write(renderer.to_html(**results))
html_file.write(html)
if os.environ.get("CS50_IDE_TYPE"):
subprocess.check_call(["c9", "exec", "renderresults", "style50", html])
else:
Expand Down

0 comments on commit 058c3bc

Please sign in to comment.