From dda25f15e0b64b585adb92e9204563ec6e17260a Mon Sep 17 00:00:00 2001 From: q Date: Sat, 7 Jan 2017 18:07:26 +0200 Subject: [PATCH] utf --- files/file_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/file_list.py b/files/file_list.py index 3eac1d0..eb8fb23 100755 --- a/files/file_list.py +++ b/files/file_list.py @@ -73,7 +73,7 @@ def add_recurse(options): db=conn.cursor() prev_path_len=0 for path,dirs,files in os.walk(options.startpath,followlinks=options.symlinks): - sys.stdout.write("\r%s%s"%(filename_join(path,".",options),(prev_path_len-len(path))*' ')) + sys.stdout.write(("\r%s%s"%(filename_join(path,".",options),(prev_path_len-len(path))*' ')).encode('utf-8')) prev_path_len=len(path) dirs=clean_dirs(dirs) dirs.sort()