From f085ec39b272c099a19c74488c1c7a6967d109ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 29 Jun 2005 20:04:46 +0000 Subject: [PATCH] comment. --- pisi/util.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pisi/util.py b/pisi/util.py index 796126f9..6bf1e994 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -150,11 +150,12 @@ def copy_file(src,dest): shutil.copyfile(src, dest) def get_file_hashes(top, excludePrefixes=None, removePrefix=None): - """Generator function iterates over a toplevel path and gives the + """Generator function iterates over a toplevel path and returns the (filePath, sha1Hash) tuple for all files. If excludePrefixes list - is given function will exclude the filePaths matching those - prefixes. The removePrefix string parameter will be used to remove - prefix from filePath while matching excludes, if given.""" + is given as a parameter, function will exclude the filePaths + matching those prefixes. The removePrefix string parameter will be + used to remove prefix from filePath while matching excludes, if + given.""" for root, dirs, files in os.walk(top, topdown=False): # check if root matches an exclude, and continue if excludePrefixes and removePrefix: