Skip to content

Commit

Permalink
Merge pull request #106 from nschloe/version-bump
Browse files Browse the repository at this point in the history
version bump
  • Loading branch information
nschloe authored Jun 13, 2021
2 parents 3f31f00 + 4334266 commit 1dd25df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = tuna
version = 0.5.6
version = 0.5.7
author = Nico Schlömer
author_email = [email protected]
description = Visualize Python performance profiles
Expand Down
3 changes: 2 additions & 1 deletion tuna/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ def do_GET(self):
if self.path == "/":
self.send_header("Content-type", "text/html")
self.end_headers()
self.wfile.write(render(data, prof_filename).encode("utf-8"))
self.wfile.write(render(data, prof_filename).encode())
else:
this_dir = Path(__file__).resolve().parent
filepath = this_dir / "web" / self.path[1:]

mimetype, _ = mimetypes.guess_type(str(filepath))
assert mimetype is not None
self.send_header("Content-type", mimetype)
self.end_headers()

Expand Down

0 comments on commit 1dd25df

Please sign in to comment.