We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 38828ea + 88f7b4f commit d42ad3dCopy full SHA for d42ad3d
1 file changed
usr/lib/webapp-manager/webapp-manager.py
@@ -255,12 +255,8 @@ def open_about(self, widget):
255
dlg.set_program_name(_("Web Apps"))
256
dlg.set_comments(_("Run websites as if they were apps"))
257
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()
+ with open('/usr/share/common-licenses/GPL', encoding="utf-8") as h:
+ gpl = h.read()
264
dlg.set_license(gpl)
265
except Exception as e:
266
print(e)
0 commit comments