From 7692182cfba0027aa965ee4dcb469198612b4000 Mon Sep 17 00:00:00 2001 From: q Date: Fri, 15 Aug 2014 16:19:58 +0300 Subject: [PATCH] fixing unicode stuff --- file_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file_list.py b/file_list.py index 87c33c7..bd38869 100755 --- a/file_list.py +++ b/file_list.py @@ -213,7 +213,7 @@ def get_folder_contents(db,path): files=[] db.execute("SELECT file FROM list where file LIKE ?",(path+'%',)) for row in db: - base=unicode(row[0],'UTf-8').replace(path,'',1) + base=row[0].decode('utf-8').replace(path,'',1) if base.find('/')==-1: files.append(base) return files