From b062cc66d6ddbd6cac0f27d254d74eb5ffdb029c Mon Sep 17 00:00:00 2001 From: Erik Hahn Date: Fri, 31 Jul 2009 14:09:43 +0200 Subject: [PATCH] Improve commenting --- ordnung.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ordnung.py b/ordnung.py index 2db0e65..ec4dd22 100644 --- a/ordnung.py +++ b/ordnung.py @@ -59,16 +59,13 @@ def safeprint(string): def files_to_move(base_dir, pattern, recursive=False): - """ - Figure out which files to move where - """ + # Figure out which files to move where basepath = path(base_dir) if recursive: files = basepath.walkfiles() else: files = basepath.files() - # This list will later contain all the (origin, destination) tuples files_return = [] for file in files: @@ -111,7 +108,8 @@ def main(): except IndexError: print "You must specify a pattern" sys.exit() - + + # Do stuff for i in files_to_move(base_dir=base, pattern=pattern, recursive=options.recursive): if options.action == MOVE: -- 2.11.4.GIT