diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-12 16:10:42 +0000 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-12 16:10:42 +0000 |
commit | be086057ae3258f1f069929ea9d36744f6845f98 (patch) | |
tree | 5541a98fadaab64db49fbe1a06ecd59a3850fa91 /morphlib/builder2.py | |
parent | 0b0a699719cd7e1c993da83dfc10b2d77c54dcbb (diff) | |
download | morph-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.py | 2 |
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 |