summaryrefslogtreecommitdiff
path: root/ybd
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2016-07-10 14:33:19 +0100
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2016-07-10 14:44:28 +0100
commita6c5c02de703b7710fd729f876d55191a82e3d6c (patch)
tree5d246195c4b7fb4c31d5d1cb2977eb4f1fff6649 /ybd
parentb6f6a551dd77df3aac18ec13d253e53b17ed2fa0 (diff)
downloadybd-a6c5c02de703b7710fd729f876d55191a82e3d6c.tar.gz
Rename basenames => filenames
Diffstat (limited to 'ybd')
-rw-r--r--ybd/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ybd/utils.py b/ybd/utils.py
index b9fd653..67b9e5d 100644
--- a/ybd/utils.py
+++ b/ybd/utils.py
@@ -37,10 +37,10 @@ def set_mtime_recursively(root, set_time=default_magic_timestamp):
'''
- for dirname, subdirs, basenames in os.walk(root.encode("utf-8"),
+ for dirname, subdirs, filenames in os.walk(root.encode("utf-8"),
topdown=False):
- for basename in basenames:
- pathname = os.path.join(dirname, basename)
+ for filename in filenames:
+ pathname = os.path.join(dirname, filename)
# Python's os.utime only ever modifies the timestamp
# of the target, it is not acceptable to set the timestamp