Skip to content

Commit

Permalink
OWReport: Properly close template file
Browse files Browse the repository at this point in the history
  • Loading branch information
astaric committed Jul 14, 2016
1 parent ee8e609 commit b78bd9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Orange/canvas/report/owreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def __init__(self):
self.report_changed = False

index_file = pkg_resources.resource_filename(__name__, "index.html")
self.report_html_template = open(index_file, "r").read()
with open(index_file, "r") as f:
self.report_html_template = f.read()

def _setup_ui_(self):
self.table_model = ReportItemModel(0, len(Column.__members__))
Expand Down

0 comments on commit b78bd9b

Please sign in to comment.