mirror of
https://github.com/0xAX/linux-insides.git
synced 2024-12-22 06:38:07 +00:00
Scripts/get_all_links: Properly close files
`get_all_links.py` opens files for reading urls in those, but do not closes those. This commit makes the script to properly close the files. Signed-off-by: SeongJae Park <sj38.park@gmail.com>
This commit is contained in:
parent
738fefc3c3
commit
ecb9179750
@ -56,6 +56,7 @@ def main(path):
|
||||
for ref in refs:
|
||||
if ref not in urls:
|
||||
urls.append(ref)
|
||||
fd.close()
|
||||
|
||||
#print(len(urls))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user