From 4b8a7d51beabbfeb75e1cb1a18f244712639c5ba Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Tue, 28 Jan 2014 07:30:26 +0100 Subject: [PATCH] added rethash parameter to iter_file_dups --- sweeper/sweeper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sweeper/sweeper.py b/sweeper/sweeper.py index e4a9c6b..d6efeca 100644 --- a/sweeper/sweeper.py +++ b/sweeper/sweeper.py @@ -109,9 +109,9 @@ def iter_file_dups(topdirs=['./'], rethash=False, hashalg='md5', block_size=4096 returned, otherwise duplicate paths list is returned. """ dups = file_dups(topdirs, hashalg, block_size) - for hash, fpaths in _dict_iter_items: + for hash_, fpaths in _dict_iter_items(dups): if rethash: - yield (hash, fpaths) + yield (hash_, fpaths) else: yield fpaths