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: