From ee4cd8e14b6356e595c7d3ba4966019acec10347 Mon Sep 17 00:00:00 2001 From: "Christopher K. Hoadley" Date: Mon, 21 Jan 2019 16:30:07 -0600 Subject: [PATCH] While running tests, I was getting a ResourceWarning about an unclosed file. The result file was not being closed, so it was a valid warning. Close the file to avoid this warning. --- sherlock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sherlock.py b/sherlock.py index ee47110..452e04e 100644 --- a/sherlock.py +++ b/sherlock.py @@ -326,6 +326,7 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr Fore.WHITE + "{}").format(fname)) final_score(amount, f) + f.close() return results_total