Skip to content

Commit

Permalink
Fix warning of unclosed file
Browse files Browse the repository at this point in the history
  • Loading branch information
liberostelios committed Mar 5, 2020
1 parent 144d251 commit 3a3dc26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cityjson_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def update_file_information(self, filename):
try:
fstream = open(filename, encoding='utf-8-sig')
model = cityjson.CityJSON(fstream)
fstream.close()
self.dlg.cityjsonVersionLineEdit.setText(model.get_version())
self.dlg.compressedLineEdit.setText("Yes" if "transform" in model.j else "No")

Expand Down

0 comments on commit 3a3dc26

Please sign in to comment.