Handle Unicode filenames on Python 2.7
diff --git a/test_acid.py b/test_acid.py
index a85b1c3..8fa6aab 100755
--- a/test_acid.py
+++ b/test_acid.py
@@ -24,6 +24,12 @@
END = ''
+try:
+ unicode
+except NameError:
+ unicode = str
+
+
def colored(text, color):
"""Return color coded text."""
return color + text + END
@@ -212,7 +218,7 @@
completed_filenames.update(name)
if os.path.isdir(name):
- for root, directories, children in os.walk(name):
+ for root, directories, children in os.walk(unicode(name)):
filenames += [os.path.join(root, f) for f in children
if f.endswith('.py') and
not f.startswith('.')]