summaryrefslogtreecommitdiff
path: root/morphlib/builder2.py
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-12 16:10:42 +0000
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-12 16:10:42 +0000
commitbe086057ae3258f1f069929ea9d36744f6845f98 (patch)
tree5541a98fadaab64db49fbe1a06ecd59a3850fa91 /morphlib/builder2.py
parent0b0a699719cd7e1c993da83dfc10b2d77c54dcbb (diff)
downloadmorph-be086057ae3258f1f069929ea9d36744f6845f98.tar.gz
Encode the root path for os.walk()
Unfortunately we were running into issues with unicode filenames in repositories causing set_mtime_recursively() to explode. This fixes the problem. Reviewed-By: Lars Wirzenius (In real life)
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r--morphlib/builder2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index 9d729384..028926a1 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -348,7 +348,7 @@ class ChunkBuilder(BuilderBase):
'''
now = time.time()
- for dirname, subdirs, basenames in os.walk(root, topdown=False):
+ for dirname, subdirs, basenames in os.walk(root.encode("utf-8"), topdown=False):
for basename in basenames:
pathname = os.path.join(dirname, basename)
# we need the following check to ignore broken symlinks