Commit e2810edc authored by Dima Galat's avatar Dima Galat
Browse files

removing redundant .flush

parent d0e594f9
...@@ -385,8 +385,6 @@ def get_from_cache( ...@@ -385,8 +385,6 @@ def get_from_cache(
else: else:
http_get(url, temp_file, proxies=proxies, resume_size=resume_size, user_agent=user_agent) http_get(url, temp_file, proxies=proxies, resume_size=resume_size, user_agent=user_agent)
# we are copying the file before closing it, so flush to avoid truncation
temp_file.flush()
logger.info("storing %s in cache at %s", url, cache_path) logger.info("storing %s in cache at %s", url, cache_path)
os.rename(temp_file.name, cache_path) os.rename(temp_file.name, cache_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment