gdb: copyright: make file header scan a bit more pythonic
authorMike Frysinger <vapier@gentoo.org>
Sat, 1 Jan 2022 18:08:20 +0000 (13:08 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 26 Oct 2022 08:56:40 +0000 (14:41 +0545)
commit99033a63c7ba0997ef737392eef15337d6783078
tree7e68f13928eaee5c6eb84038c63ff55df147d435
parente5fbca55b28b77eced290e4e681f1d5cd3dafe98
gdb: copyright: make file header scan a bit more pythonic

Should be functionally the same, but uses more pythonic idioms to get
fewer lines of code, and to make sure to not leak open file handles.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/copyright.py