From 4d015b6be86e66da6e41f73cacae0d93ece9f783 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Fri, 7 Feb 2014 13:04:37 +0100 Subject: [PATCH] fix example for new iter_file_dups function --- README.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index e8f05fb..7ed800e 100644 --- a/README.rst +++ b/README.rst @@ -26,9 +26,8 @@ Perform custom action .. code:: python from sweeper import iter_file_dups - for files in iter_file_dups(['images']): - for fname in files: - print('found duplicate file with name: {}'.format(fname)) + for f, h, dups in iter_file_dups(['images']): + print('encountered {} which duplicates with already found duplicate files {} with hash {}'.format(f, dups, h)) As script::