From 8139b88afea3538e85515af87bf97bc6b4f97a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Mon, 30 Oct 2017 15:03:32 +0100 Subject: [PATCH] renamed some stuff so they wont shadow built-in functions --- coub-dl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coub-dl.py b/coub-dl.py index 0b45922..7010d21 100755 --- a/coub-dl.py +++ b/coub-dl.py @@ -190,12 +190,12 @@ def run(URL, output, extension): remove(FILES[File.OUTPUT]) # create temporary directory to work in - with temporary_directory() as dir: + with temporary_directory() as tempdir: # update temporary file locations in FILES dict for key in {key: FILES[key] for key in FILES if key not in coub_dl.output_files}: - FILES[key] = join(dir, FILES[key]) + FILES[key] = join(tempdir, FILES[key]) - coub_dl(URL, FILES, dir)() + coub_dl(URL, FILES, tempdir)() def determine_output_filename(url, user_supplied, extension, files_dict):