Skip to content

Commit d42ad3d

Browse files
authored
Merge branch 'linuxmint:master' into feature_import_export
2 parents 38828ea + 88f7b4f commit d42ad3d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

usr/lib/webapp-manager/webapp-manager.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,8 @@ def open_about(self, widget):
255255
dlg.set_program_name(_("Web Apps"))
256256
dlg.set_comments(_("Run websites as if they were apps"))
257257
try:
258-
h = open('/usr/share/common-licenses/GPL', encoding="utf-8")
259-
s = h.readlines()
260-
gpl = ""
261-
for line in s:
262-
gpl += line
263-
h.close()
258+
with open('/usr/share/common-licenses/GPL', encoding="utf-8") as h:
259+
gpl = h.read()
264260
dlg.set_license(gpl)
265261
except Exception as e:
266262
print(e)

0 commit comments

Comments
 (0)