소스 검색

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>
SeongJae Park 4 년 전
부모
커밋
ecb9179750
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Scripts/get_all_links.py

+ 1 - 0
Scripts/get_all_links.py

@@ -56,6 +56,7 @@ def main(path):
             for ref in refs:
                 if ref not in urls:
                     urls.append(ref)
+        fd.close()
 
     #print(len(urls))