We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0f942c commit 611d74dCopy full SHA for 611d74d
usr/lib/linuxmint/mintinstall/mintinstall.py
@@ -1780,12 +1780,8 @@ def open_about(self, widget):
1780
dlg.set_program_name("mintinstall")
1781
dlg.set_comments(_("Software Manager"))
1782
try:
1783
- h = open('/usr/share/common-licenses/GPL', 'r')
1784
- s = h.readlines()
1785
- gpl = ""
1786
- for line in s:
1787
- gpl += line
1788
- h.close()
+ with open('/usr/share/common-licenses/GPL', 'r') as h:
+ gpl = h.read()
1789
dlg.set_license(gpl)
1790
except Exception as e:
1791
print(e)
0 commit comments