We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a416cb commit 88f7b4fCopy full SHA for 88f7b4f
1 file changed
usr/lib/webapp-manager/webapp-manager.py
@@ -238,12 +238,8 @@ def open_about(self, widget):
238
dlg.set_program_name(_("Web Apps"))
239
dlg.set_comments(_("Run websites as if they were apps"))
240
try:
241
- h = open('/usr/share/common-licenses/GPL', encoding="utf-8")
242
- s = h.readlines()
243
- gpl = ""
244
- for line in s:
245
- gpl += line
246
- h.close()
+ with open('/usr/share/common-licenses/GPL', encoding="utf-8") as h:
+ gpl = h.read()
247
dlg.set_license(gpl)
248
except Exception as e:
249
print(e)
0 commit comments